Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b58377f

Browse files
committed
Build/Test Tools: Update github-script action to the latest version.
The latest version of the `actions/github-script` action fixes an issue where passing options to the action would remove any default values not passed (see actions/github-script#293). This also includes updates to other third-party actions, bringing all third-party versions in Core workflows to their latest versions: - `actions/cache` - `actions/setup-node` - `codecov/codecov-action` See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54373 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f336d5a commit b58377f

10 files changed

+26
-26
lines changed

.github/workflows/coding-standards.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
88+
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
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') }}
@@ -150,7 +150,7 @@ jobs:
150150
svn --version
151151
152152
- name: Install NodeJS
153-
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
153+
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
154154
with:
155155
node-version-file: '.nvmrc'
156156
cache: npm
@@ -198,7 +198,7 @@ jobs:
198198
199199
steps:
200200
- name: Dispatch workflow run
201-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
201+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
202202
with:
203203
retries: 2
204204
retry-exempt-status-codes: 418

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

Lines changed: 2 additions & 2 deletions
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@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
76+
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
7777
with:
7878
node-version-file: '.nvmrc'
7979
cache: npm
@@ -146,7 +146,7 @@ jobs:
146146
147147
steps:
148148
- name: Dispatch workflow run
149-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
149+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
150150
with:
151151
retries: 2
152152
retry-exempt-status-codes: 418

.github/workflows/failed-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Rerun a workflow
27-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
27+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
2828
with:
2929
retries: 2
3030
retry-exempt-status-codes: 418

.github/workflows/javascript-tests.yml

Lines changed: 2 additions & 2 deletions
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@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
70+
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
7171
with:
7272
node-version-file: '.nvmrc'
7373
cache: npm
@@ -114,7 +114,7 @@ jobs:
114114
115115
steps:
116116
- name: Dispatch workflow run
117-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
117+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
118118
with:
119119
retries: 2
120120
retry-exempt-status-codes: 418

.github/workflows/php-compatibility.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
83+
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
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') }}
@@ -134,7 +134,7 @@ jobs:
134134
135135
steps:
136136
- name: Dispatch workflow run
137-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
137+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
138138
with:
139139
retries: 2
140140
retry-exempt-status-codes: 418

.github/workflows/phpunit-tests.yml

Lines changed: 3 additions & 3 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@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
115+
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
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@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
134+
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
135135
env:
136136
cache-name: cache-composer-dependencies
137137
with:
@@ -262,7 +262,7 @@ jobs:
262262
263263
steps:
264264
- name: Dispatch workflow run
265-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
265+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
266266
with:
267267
retries: 2
268268
retry-exempt-status-codes: 418

.github/workflows/slack-notifications.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
steps:
7070
- name: Determine the status of the previous attempt
7171
id: previous-attempt-result
72-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
72+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
7373
with:
7474
retries: 2
7575
retry-exempt-status-codes: 418
@@ -129,7 +129,7 @@ jobs:
129129

130130
- name: Get the commit message
131131
id: current-commit-message
132-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
132+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
133133
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
134134
with:
135135
retries: 2

.github/workflows/test-coverage.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
locale -a
7878
7979
- name: Install NodeJS
80-
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
80+
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
8181
with:
8282
node-version-file: '.nvmrc'
8383
cache: npm
@@ -96,7 +96,7 @@ jobs:
9696
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
9797

9898
- name: Cache Composer dependencies
99-
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
99+
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
100100
env:
101101
cache-name: cache-composer-dependencies
102102
with:
@@ -149,8 +149,8 @@ jobs:
149149
run: git diff --exit-code
150150

151151
- name: Upload single site report to Codecov
152-
if: ${{ ! matrix.multisite }}
153-
uses: codecov/codecov-action@e3c560433a6cc60aec8812599b7844a7b4fa0d71 # v3.0.0
152+
if: ${{ ! matrix.multisite && github.event_name != 'pull_request' }}
153+
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
154154
with:
155155
file: wp-code-coverage-single-clover-${{ github.sha }}.xml
156156
flags: single,php
@@ -163,8 +163,8 @@ jobs:
163163
run: git diff --exit-code
164164

165165
- name: Upload multisite report to Codecov
166-
if: ${{ matrix.multisite }}
167-
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
166+
if: ${{ matrix.multisite && github.event_name != 'pull_request' }}
167+
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
168168
with:
169169
file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml
170170
flags: multisite,php
@@ -197,7 +197,7 @@ jobs:
197197
198198
steps:
199199
- name: Dispatch workflow run
200-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
200+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
201201
with:
202202
retries: 2
203203
retry-exempt-status-codes: 418

.github/workflows/test-npm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
svn --version
7575
7676
- name: Install NodeJS
77-
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
77+
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
7878
with:
7979
node-version-file: '.nvmrc'
8080
cache: npm
@@ -134,7 +134,7 @@ jobs:
134134
svn --version
135135
136136
- name: Install NodeJS
137-
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
137+
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
138138
with:
139139
node-version-file: '.nvmrc'
140140
cache: npm
@@ -189,7 +189,7 @@ jobs:
189189
190190
steps:
191191
- name: Dispatch workflow run
192-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
192+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
193193
with:
194194
retries: 2
195195
retry-exempt-status-codes: 418

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
# Run all branches monthly, but only the currently supported one twice per month.
6363
steps:
6464
- name: Dispatch workflow run
65-
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
65+
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
6666
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.0' }}
6767
with:
6868
retries: 2

0 commit comments

Comments
 (0)