Skip to content

Commit 30bd1a4

Browse files
authored
Gh actions update to Ubuntu 22.04 (#7992)
* Github actions updated to use Ubuntu 22.04 * Update verify to use Ubuntu 22.04 * Update to actions/checkout@v3 * Update to actions/setup-python@v3 * Update to actions/setup-python@v4 Also tested in other branch
1 parent 0f6239b commit 30bd1a4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22
on: [ push, pull_request ]
33
jobs:
44
setup:
5-
runs-on: ubuntu-20.04
5+
runs-on: ubuntu-22.04
66
steps:
77
# Required for workflow triggers like the auto-label for failing PRs
88
- name: Save PR number
@@ -20,7 +20,7 @@ jobs:
2020
#
2121
# We need to fetch more than one commit to be able to access HEAD^2 in case
2222
# of a pull request
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424
with:
2525
fetch-depth: 10
2626
# In case of a push event, the commit we care about is simply HEAD.
@@ -46,7 +46,7 @@ jobs:
4646
echo "$(git log --format=%B -n 1 HEAD^2)" >> $GITHUB_ENV
4747
echo "EOF" >> $GITHUB_ENV
4848
echo "PREVIOUS_COMMIT=$(git log --format=%H -n 1 HEAD^2~1)" >> $GITHUB_ENV
49-
- uses: actions/setup-python@v2
49+
- uses: actions/setup-python@v4
5050
with:
5151
python-version: '2.7'
5252
architecture: 'x64'
@@ -93,7 +93,7 @@ jobs:
9393
needs: setup
9494
# The matrix check is necessary because an empty job matrix is otherwise considered a workflow failure
9595
if: ${{ !contains(needs.setup.outputs.commit_message, '[ci skip]') && contains(needs.setup.outputs.verify_matrix, 'TESTLANG') }}
96-
runs-on: ubuntu-18.04
96+
runs-on: ubuntu-22.04
9797
strategy:
9898
matrix: ${{ fromJSON(needs.setup.outputs.verify_matrix) }}
9999
# Disable fail-fast to allow all failing frameworks/etc to fail in a
@@ -108,10 +108,10 @@ jobs:
108108
PREVIOUS_COMMIT: ${{ needs.setup.outputs.previous_commit }}
109109
PR_NUMBER: ${{ github.event.pull_request.number }}
110110
steps:
111-
- uses: actions/checkout@v2
111+
- uses: actions/checkout@v3
112112
with:
113113
fetch-depth: 10
114-
- uses: actions/setup-python@v2
114+
- uses: actions/setup-python@v4
115115
with:
116116
python-version: '2.7'
117117
architecture: 'x64'

.github/workflows/label-failing-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
apply_label:
99
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' }}
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- name: 'Download artifact'
1313
uses: actions/[email protected]

0 commit comments

Comments
 (0)