Skip to content

Commit 5efc6df

Browse files
committed
Pin GitHub Actions runner images instead of using -latest aliases
1 parent f228dcb commit 5efc6df

8 files changed

Lines changed: 19 additions & 19 deletions

File tree

‎.github/workflows/build-plugin-zip.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525
jobs:
2626
compute-stable-branches:
2727
name: Compute current and next stable release branches
28-
runs-on: ubuntu-latest
28+
runs-on: 'ubuntu-24.04'
2929
if: ${{ github.event_name == 'workflow_dispatch' }}
3030
outputs:
3131
current_stable_branch: ${{ steps.get_branches.outputs.current_stable_branch }}
@@ -50,7 +50,7 @@ jobs:
5050
5151
bump-version:
5252
name: Bump version
53-
runs-on: ubuntu-latest
53+
runs-on: 'ubuntu-24.04'
5454
needs: compute-stable-branches
5555
if: |
5656
github.event_name == 'workflow_dispatch' && (
@@ -157,7 +157,7 @@ jobs:
157157
158158
build:
159159
name: Build Release Artifact
160-
runs-on: ubuntu-latest
160+
runs-on: 'ubuntu-24.04'
161161
needs: bump-version
162162
if: |
163163
always() && (
@@ -218,7 +218,7 @@ jobs:
218218
revert-version-bump:
219219
name: Revert version bump if build failed
220220
needs: [bump-version, build]
221-
runs-on: ubuntu-latest
221+
runs-on: 'ubuntu-24.04'
222222
if: |
223223
always() &&
224224
( needs.build.outputs.job_status == 'failure' ) &&
@@ -264,7 +264,7 @@ jobs:
264264
create-release:
265265
name: Create Release Draft and Attach Asset
266266
needs: [bump-version, build]
267-
runs-on: ubuntu-latest
267+
runs-on: 'ubuntu-24.04'
268268

269269
steps:
270270
- name: Set Release Version
@@ -309,7 +309,7 @@ jobs:
309309

310310
npm-publish:
311311
name: Publish WordPress packages to npm
312-
runs-on: ubuntu-latest
312+
runs-on: 'ubuntu-24.04'
313313
environment: WordPress packages
314314
needs: [bump-version, build]
315315
if: ${{ endsWith( needs.bump-version.outputs.new_version, '-rc.1' ) }}

‎.github/workflows/bundle-size.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ concurrency:
3434
jobs:
3535
build:
3636
name: Check
37-
runs-on: ubuntu-latest
37+
runs-on: 'ubuntu-24.04'
3838

3939
steps:
4040
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/create-block.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
28+
os: ['macos-15', 'ubuntu-24.04', 'windows-2025']
2929

3030
steps:
3131
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/end2end-test.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
jobs:
2121
e2e-playwright:
2222
name: Playwright - ${{ matrix.part }}
23-
runs-on: ubuntu-latest
23+
runs-on: 'ubuntu-24.04'
2424
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
2525
strategy:
2626
fail-fast: false
@@ -73,7 +73,7 @@ jobs:
7373
name: Merge Artifacts
7474
if: ${{ !cancelled() }}
7575
needs: [e2e-playwright]
76-
runs-on: ubuntu-latest
76+
runs-on: 'ubuntu-24.04'
7777
steps:
7878
- name: Merge failures artifacts
7979
uses: actions/upload-artifact/merge@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

‎.github/workflows/props-bot.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
# - Removes the props-bot label, if necessary.
4949
props-bot:
5050
name: Generate a list of props
51-
runs-on: ubuntu-latest
51+
runs-on: 'ubuntu-24.04'
5252
permissions:
5353
# The action needs permission `write` permission for PRs in order to add a comment.
5454
pull-requests: write

‎.github/workflows/publish-npm-packages.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ concurrency:
2626
jobs:
2727
release:
2828
name: Release - ${{ github.event.inputs.release_type }}
29-
runs-on: ubuntu-latest
29+
runs-on: 'ubuntu-24.04'
3030
environment: WordPress packages
3131
steps:
3232
- name: Checkout (for CLI)

‎.github/workflows/static-checks.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
jobs:
2121
check:
2222
name: All
23-
runs-on: ubuntu-latest
23+
runs-on: 'ubuntu-24.04'
2424
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
2525

2626
steps:

‎.github/workflows/unit-test.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ concurrency:
2424
jobs:
2525
unit-js:
2626
name: JavaScript ${{ matrix.shard }}
27-
runs-on: ubuntu-latest
27+
runs-on: 'ubuntu-24.04'
2828
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
2929
strategy:
3030
fail-fast: false
@@ -56,7 +56,7 @@ jobs:
5656
5757
unit-js-date:
5858
name: JavaScript Date Tests
59-
runs-on: ubuntu-latest
59+
runs-on: 'ubuntu-24.04'
6060
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
6161

6262
steps:
@@ -104,7 +104,7 @@ jobs:
104104
105105
build-assets:
106106
name: Build JavaScript assets for PHP unit tests
107-
runs-on: ubuntu-latest
107+
runs-on: 'ubuntu-24.04'
108108
steps:
109109
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
110110
with:
@@ -125,7 +125,7 @@ jobs:
125125
test-php:
126126
name: PHP ${{ matrix.php }}${{ matrix.multisite && ' multisite' || '' }}${{ matrix.wordpress != '' && format( ' (WP {0}) ', matrix.wordpress ) || '' }} on ubuntu-latest
127127
needs: [compute-previous-wordpress-version, build-assets]
128-
runs-on: ubuntu-latest
128+
runs-on: 'ubuntu-24.04'
129129
timeout-minutes: 20
130130
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
131131
strategy:
@@ -260,7 +260,7 @@ jobs:
260260
261261
phpcs:
262262
name: PHP coding standards
263-
runs-on: ubuntu-latest
263+
runs-on: 'ubuntu-24.04'
264264
timeout-minutes: 20
265265
if: ${{ github.repository == 'WordPress/gutenberg' || github.event_name == 'pull_request' }}
266266

@@ -313,7 +313,7 @@ jobs:
313313
# This job is deprecated but be present for compatibility reasons.
314314
unit-php:
315315
name: PHP
316-
runs-on: ubuntu-latest
316+
runs-on: 'ubuntu-24.04'
317317
needs: [test-php, phpcs]
318318
if: ${{ always() }}
319319
steps:

0 commit comments

Comments
 (0)