Skip to content

Commit 193406a

Browse files
committed
Build/Test Tools: Update third-party GitHub Actions to latest versions.
Updated actions: - `actions/cache` - `actions/github-script` - `actions/setup-node` - `bubkoo/welcome-action` - `shivammathur/setup-php` - `slackapi/slack-github-action` See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@53940 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6ab901e commit 193406a

10 files changed

Lines changed: 21 additions & 21 deletions

.github/workflows/coding-standards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
6868

6969
- name: Set up PHP
70-
uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
70+
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
7171
with:
7272
php-version: '7.4'
7373
coverage: none
@@ -85,7 +85,7 @@ jobs:
8585
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
8686

8787
- name: Cache PHPCS scan cache
88-
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
88+
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
8989
with:
9090
path: .cache/phpcs.json
9191
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
@@ -142,7 +142,7 @@ jobs:
142142
svn --version
143143
144144
- name: Install NodeJS
145-
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
145+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
146146
with:
147147
node-version-file: '.nvmrc'
148148
cache: npm

.github/workflows/end-to-end-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
locale -a
7474
7575
- name: Install NodeJS
76-
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
76+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
7777
with:
7878
node-version-file: '.nvmrc'
7979
cache: npm

.github/workflows/javascript-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
svn --version
6868
6969
- name: Install NodeJS
70-
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
70+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
7171
with:
7272
node-version-file: '.nvmrc'
7373
cache: npm

.github/workflows/php-compatibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
6363

6464
- name: Set up PHP
65-
uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
65+
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
6666
with:
6767
php-version: '7.4'
6868
coverage: none
@@ -80,7 +80,7 @@ jobs:
8080
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
8181

8282
- name: Cache PHP compatibility scan cache
83-
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
83+
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
8484
with:
8585
path: .cache/phpcompat.json
8686
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}

.github/workflows/phpunit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
113113

114114
- name: Install NodeJS
115-
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
115+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
116116
with:
117117
node-version-file: '.nvmrc'
118118
cache: npm
@@ -131,7 +131,7 @@ jobs:
131131
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
132132

133133
- name: Cache Composer dependencies
134-
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
134+
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
135135
env:
136136
cache-name: cache-composer-dependencies
137137
with:

.github/workflows/slack-notifications.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
steps:
5454
- name: Determine the status of the previous attempt
5555
id: previous-attempt-result
56-
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0
56+
uses: actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # v6.1.1
5757
with:
5858
script: |
5959
const workflow_run = await github.rest.actions.getWorkflowRun({
@@ -116,7 +116,7 @@ jobs:
116116

117117
- name: Get the commit message
118118
id: current-commit-message
119-
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0
119+
uses: actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # v6.1.1
120120
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
121121
with:
122122
script: |
@@ -150,7 +150,7 @@ jobs:
150150

151151
steps:
152152
- name: Post failure notifications to Slack
153-
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
153+
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
154154
with:
155155
payload: ${{ needs.prepare.outputs.payload }}
156156
env:
@@ -166,7 +166,7 @@ jobs:
166166

167167
steps:
168168
- name: Post failure notifications to Slack
169-
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
169+
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
170170
with:
171171
payload: ${{ needs.prepare.outputs.payload }}
172172
env:
@@ -182,7 +182,7 @@ jobs:
182182

183183
steps:
184184
- name: Post success notifications to Slack
185-
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
185+
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
186186
with:
187187
payload: ${{ needs.prepare.outputs.payload }}
188188
env:
@@ -198,7 +198,7 @@ jobs:
198198

199199
steps:
200200
- name: Post cancelled notifications to Slack
201-
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
201+
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
202202
with:
203203
payload: ${{ needs.prepare.outputs.payload }}
204204
env:

.github/workflows/test-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
locale -a
8888
8989
- name: Install NodeJS
90-
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
90+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
9191
with:
9292
node-version-file: '.nvmrc'
9393
cache: npm
@@ -106,7 +106,7 @@ jobs:
106106
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
107107

108108
- name: Cache Composer dependencies
109-
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
109+
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
110110
env:
111111
cache-name: cache-composer-dependencies
112112
with:

.github/workflows/test-npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
svn --version
7474
7575
- name: Install NodeJS
76-
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
76+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
7777
with:
7878
node-version-file: '.nvmrc'
7979
cache: npm
@@ -133,7 +133,7 @@ jobs:
133133
svn --version
134134
135135
- name: Install NodeJS
136-
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
136+
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
137137
with:
138138
node-version-file: '.nvmrc'
139139
cache: npm

.github/workflows/test-old-branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
# Run all branches monthly, but only the currently supported one twice per month.
6868
steps:
6969
- name: Dispatch workflow run
70-
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0
70+
uses: actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # v6.1.1
7171
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.0' }}
7272
with:
7373
github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }}

.github/workflows/welcome-new-contributors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
1313

1414
steps:
15-
- uses: bubkoo/welcome-action@8dbbac2540d155744c90e4e37da6b05ffc9c5e2c # v1.0.3
15+
- uses: bubkoo/welcome-action@e3f444df06502502071d309411d01ba18f916ede # v1.0.3
1616
with:
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1818
FIRST_PR_COMMENT: >

0 commit comments

Comments
 (0)