Skip to content

Commit 63147f9

Browse files
authored
Create issue every July to update Ubuntu version (#55)
1 parent a33cce1 commit 63147f9

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Update Ubuntu version in GitHub Actions
3+
about: Stay up to date with Ubuntu
4+
title: Update Ubuntu version in GitHub Actions
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
[Ubuntu releases annually in April](https://wiki.ubuntu.com/Releases).
11+
12+
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).
13+
14+
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).
15+
16+
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`.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Create issue annually to update Ubuntu
3+
on: # yamllint disable-line rule:truthy
4+
# Scheduled for 2am on 15th July every year
5+
schedule:
6+
- cron: '0 2 15 7 *' # * is a special character in YAML so we have to quote this string
7+
8+
jobs:
9+
create_issue:
10+
name: Create issue to update Ubuntu
11+
runs-on: ubuntu-20.04
12+
steps:
13+
14+
# Repo code checkout required if `template` is used
15+
- name: Checkout
16+
uses: actions/[email protected]
17+
18+
- name: issue-bot
19+
uses: imjohnbo/[email protected]
20+
with:
21+
assignees: "johnboyes"
22+
labels: "dependencies"
23+
# assignees & labels in the template are overridden by the values specified in this action
24+
template: ".github/ISSUE_TEMPLATE/update-ubuntu-version-in-github-actions.md"
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)