Skip to content

Commit

Permalink
ci: add quarterly tool evaluation issue creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rjaegers committed Feb 22, 2024
1 parent 28caa82 commit 4615282
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/evaluate-tool-version-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
name: Evaluate tool

on:
schedule:
- cron: 0 0 1 */3 *

permissions:
contents: read

jobs:
create_issue:
name: Create tool version evaluation issue
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- run: |
if [[ $CLOSE_PREVIOUS == true ]]; then
previous_issue_number=$(gh issue list \
--label "$LABELS" \
--json number \
--jq '.[0].number')
if [[ -n $previous_issue_number ]]; then
gh issue close "$previous_issue_number"
gh issue unpin "$previous_issue_number"
fi
fi
new_issue_url=$(gh issue create \
--title "$TITLE" \
--assignee "$ASSIGNEES" \
--label "$LABELS" \
--body "$BODY")
if [[ $PINNED == true ]]; then
gh issue pin "$new_issue_url"
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
TITLE: Evaluate tool versions
ASSIGNEES: awesome-embedded-projects
LABELS: scheduled,tool-versions
BODY: |
## Description
This issue is automatically created as a gentle reminder to evaluate the tool versions, and base container, for
the container image built from this repository. The checklist below describes the steps that should be taken,
and checked-off before this issue can be closed. Any decisions about purposefully not updating a tool to a newer
version should be logged as issue comment. The general philosophy is to always include the latest tool versions
and the latest [LTS](https://ubuntu.com/about/release-cycle) version of Ubuntu.
Please note that, where possible, tool versions are kept up-to-date by Dependabot. Below list includes tools that
are not under Dependabot control.
## Checklist
- [ ] The image is based on the latest LTS version of Ubuntu
- [ ] The GCC and GNU ARM GCC toolchains are up-to-date and match in version
- [ ] The Clang toolchain is up-to-date
- [ ] The Docker cli is up-to-date
- [ ] bats-core, bats-support and bats-assert are up-to-date
- [ ] Mull is up-to-date and compatible with the currently installed Clang version
- [ ] include-what-you-use is up-to-date and compatible with the currently installed Clang version
- [ ] xwin is up-to-date
PINNED: true
CLOSE_PREVIOUS: true

0 comments on commit 4615282

Please sign in to comment.