Skip to content

Commit 331eced

Browse files
committed
Build/Test Tools: Update actions/github-scripts to the latest version.
This version adds support for `octokit/plugin-retry.js`, which retries requests automatically when `4xx` or `5xx` response codes are returned. To start, the feature is configured to retry all `4xx` and `5xx` response codes, unless the server identifies as a teapot. See #55652. git-svn-id: https://develop.svn.wordpress.org/trunk@54342 602fd350-edb4-49c9-b593-d223f7449a82
1 parent ea4d057 commit 331eced

10 files changed

+44
-11
lines changed

.github/workflows/coding-standards.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,11 @@ jobs:
190190
191191
steps:
192192
- name: Dispatch workflow run
193-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
193+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
194194
with:
195+
retries: 2
196+
retryAfter: 10
197+
retry-exempt-status-codes: 418
195198
script: |
196199
github.rest.actions.createWorkflowDispatch({
197200
owner: context.repo.owner,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ jobs:
146146
147147
steps:
148148
- name: Dispatch workflow run
149-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
149+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
150150
with:
151+
retries: 2
152+
retryAfter: 10
153+
retry-exempt-status-codes: 418
151154
script: |
152155
github.rest.actions.createWorkflowDispatch({
153156
owner: context.repo.owner,

.github/workflows/failed-workflow.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,11 @@ jobs:
2424

2525
steps:
2626
- name: Rerun a workflow
27-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
27+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
2828
with:
29+
retries: 2
30+
retryAfter: 10
31+
retry-exempt-status-codes: 418
2932
script: |
3033
const workflow_run = await github.rest.actions.getWorkflowRun({
3134
owner: context.repo.owner,

.github/workflows/javascript-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,11 @@ jobs:
114114
115115
steps:
116116
- name: Dispatch workflow run
117-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
117+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
118118
with:
119+
retries: 2
120+
retryAfter: 10
121+
retry-exempt-status-codes: 418
119122
script: |
120123
github.rest.actions.createWorkflowDispatch({
121124
owner: context.repo.owner,

.github/workflows/php-compatibility.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,11 @@ jobs:
130130
131131
steps:
132132
- name: Dispatch workflow run
133-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
133+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
134134
with:
135+
retries: 2
136+
retryAfter: 10
137+
retry-exempt-status-codes: 418
135138
script: |
136139
github.rest.actions.createWorkflowDispatch({
137140
owner: context.repo.owner,

.github/workflows/phpunit-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,11 @@ jobs:
261261
262262
steps:
263263
- name: Dispatch workflow run
264-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
264+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
265265
with:
266+
retries: 2
267+
retryAfter: 10
268+
retry-exempt-status-codes: 418
266269
script: |
267270
github.rest.actions.createWorkflowDispatch({
268271
owner: context.repo.owner,

.github/workflows/slack-notifications.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ jobs:
5353
steps:
5454
- name: Determine the status of the previous attempt
5555
id: previous-attempt-result
56-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
56+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
5757
with:
58+
retries: 2
59+
retryAfter: 10
60+
retry-exempt-status-codes: 418
5861
script: |
5962
const workflow_run = await github.rest.actions.getWorkflowRun({
6063
owner: context.repo.owner,
@@ -116,9 +119,12 @@ jobs:
116119

117120
- name: Get the commit message
118121
id: current-commit-message
119-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
122+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
120123
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
121124
with:
125+
retries: 2
126+
retryAfter: 10
127+
retry-exempt-status-codes: 418
122128
script: |
123129
const commit_details = await github.rest.repos.getCommit({
124130
owner: context.repo.owner,

.github/workflows/test-coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,11 @@ jobs:
209209
210210
steps:
211211
- name: Dispatch workflow run
212-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
212+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
213213
with:
214+
retries: 2
215+
retryAfter: 10
216+
retry-exempt-status-codes: 418
214217
script: |
215218
github.rest.actions.createWorkflowDispatch({
216219
owner: context.repo.owner,

.github/workflows/test-npm.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,11 @@ jobs:
188188
189189
steps:
190190
- name: Dispatch workflow run
191-
uses: actions/github-script@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
191+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
192192
with:
193+
retries: 2
194+
retryAfter: 10
195+
retry-exempt-status-codes: 418
193196
script: |
194197
github.rest.actions.createWorkflowDispatch({
195198
owner: context.repo.owner,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,12 @@ 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@c713e510dbd7d213d92d41b7a7805a986f4c5c66 # v6.2.0
70+
uses: actions/github-script@d4560e157075e2d93aa3022b5b51a42a880f1f93 # v6.3.0
7171
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.0' }}
7272
with:
73+
retries: 2
74+
retryAfter: 10
75+
retry-exempt-status-codes: 418
7376
script: |
7477
github.rest.actions.createWorkflowDispatch({
7578
owner: context.repo.owner,

0 commit comments

Comments
 (0)