Skip to content

Commit 035b0e9

Browse files
Use ubuntu-22.04 instead of ubuntu-latest in GitHub Actions workflows. (#2155)
With CI it is good practice to pin your dependencies to a specific version, as not doing could result in builds suddenly breaking when a "latest" version is upgraded.
1 parent 1f01a02 commit 035b0e9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/action-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
format:
99
name: 'Format JSON'
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/format')
1212
steps:
1313
- name: 'Post acknowledgement that it will format code'

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
required-files:
88
name: All required files are present
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
steps:
1111
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
1212

@@ -37,7 +37,7 @@ jobs:
3737
3838
schema-validation:
3939
name: Schema validation
40-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-22.04
4141
steps:
4242
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
4343

@@ -121,7 +121,7 @@ jobs:
121121

122122
markdown-lint:
123123
name: Lint markdown files
124-
runs-on: ubuntu-latest
124+
runs-on: ubuntu-22.04
125125
steps:
126126
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
127127

@@ -132,7 +132,7 @@ jobs:
132132
133133
json-lint:
134134
name: Lint json files
135-
runs-on: ubuntu-latest
135+
runs-on: ubuntu-22.04
136136
steps:
137137
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
138138

.github/workflows/rebase.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
rebase:
99
name: Rebase
1010
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212

1313
steps:
1414
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

0 commit comments

Comments
 (0)