generated from actions/container-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create issue every July to update Ubuntu version (#55)
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
.github/ISSUE_TEMPLATE/update-ubuntu-version-in-github-actions.md
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,16 @@ | ||
--- | ||
name: Update Ubuntu version in GitHub Actions | ||
about: Stay up to date with Ubuntu | ||
title: Update Ubuntu version in GitHub Actions | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
[Ubuntu releases annually in April](https://wiki.ubuntu.com/Releases). | ||
|
||
In 2020 the GitHub Actions team [supported the April release for that year by mid June](https://github.com/actions/virtual-environments/issues/228#issuecomment-644065532), so this GitHub Issue gets automatically created annually each year on 15 July for us to do the update (as hopefully GitHub Actions will support the new version by then each year). | ||
|
||
We can find out if we can update yet [here](https://docs.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#supported-runners-and-hardware-resources). | ||
|
||
When we do the update to the new version it involves e.g. for 2021, simply replacing every case of `ubuntu-20.04` with `ubuntu-21.04`. |
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,26 @@ | ||
--- | ||
name: Create issue annually to update Ubuntu | ||
on: # yamllint disable-line rule:truthy | ||
# Scheduled for 2am on 15th July every year | ||
schedule: | ||
- cron: '0 2 15 7 *' # * is a special character in YAML so we have to quote this string | ||
|
||
jobs: | ||
create_issue: | ||
name: Create issue to update Ubuntu | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
|
||
# Repo code checkout required if `template` is used | ||
- name: Checkout | ||
uses: actions/checkout@v2.3.2 | ||
|
||
- name: issue-bot | ||
uses: imjohnbo/issue-bot@v2.3 | ||
with: | ||
assignees: "johnboyes" | ||
labels: "dependencies" | ||
# assignees & labels in the template are overridden by the values specified in this action | ||
template: ".github/ISSUE_TEMPLATE/update-ubuntu-version-in-github-actions.md" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |