-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add quarterly tool evaluation issue creation
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |