Skip to content

Commit 90b3a49

Browse files
committed
Build/Test Tools: Coerce the run_id input to a string before passing it to the "Failed Workflow" workflow.
Follow-up to [59679]. See #62221 git-svn-id: https://develop.svn.wordpress.org/trunk@59687 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 82de169 commit 90b3a49

13 files changed

+14
-14
lines changed

.github/workflows/coding-standards.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ jobs:
107107
workflow_id: 'failed-workflow.yml',
108108
ref: 'trunk',
109109
inputs: {
110-
run_id: context.runId,
110+
run_id: `${context.runId}`,
111111
}
112112
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ jobs:
9393
workflow_id: 'failed-workflow.yml',
9494
ref: 'trunk',
9595
inputs: {
96-
run_id: context.runId,
96+
run_id: `${context.runId}`,
9797
}
9898
});

.github/workflows/install-testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ jobs:
179179
workflow_id: 'failed-workflow.yml',
180180
ref: 'trunk',
181181
inputs: {
182-
run_id: context.runId,
182+
run_id: `${context.runId}`,
183183
}
184184
});

.github/workflows/javascript-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ jobs:
9797
workflow_id: 'failed-workflow.yml',
9898
ref: 'trunk',
9999
inputs: {
100-
run_id: context.runId,
100+
run_id: `${context.runId}`,
101101
}
102102
});

.github/workflows/local-docker-environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@ jobs:
150150
workflow_id: 'failed-workflow.yml',
151151
ref: 'trunk',
152152
inputs: {
153-
run_id: context.runId,
153+
run_id: `${context.runId}`,
154154
}
155155
});

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ jobs:
9393
workflow_id: 'failed-workflow.yml',
9494
ref: 'trunk',
9595
inputs: {
96-
run_id: context.runId,
96+
run_id: `${context.runId}`,
9797
}
9898
});

.github/workflows/php-compatibility.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ jobs:
9494
workflow_id: 'failed-workflow.yml',
9595
ref: 'trunk',
9696
inputs: {
97-
run_id: context.runId,
97+
run_id: `${context.runId}`,
9898
}
9999
});

.github/workflows/phpunit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,6 @@ jobs:
263263
workflow_id: 'failed-workflow.yml',
264264
ref: 'trunk',
265265
inputs: {
266-
run_id: context.runId,
266+
run_id: `${context.runId}`,
267267
}
268268
});

.github/workflows/slack-notifications.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
const workflow_run = await github.rest.actions.getWorkflowRun({
6969
owner: context.repo.owner,
7070
repo: context.repo.repo,
71-
run_id: context.runId,
71+
run_id: `${context.runId}`,
7272
});
7373
7474
if ( process.env.CALLING_STATUS == 'failure' && workflow_run.data.run_attempt == 1 ) {
@@ -82,7 +82,7 @@ jobs:
8282
const previous_run = await github.rest.actions.getWorkflowRunAttempt({
8383
owner: context.repo.owner,
8484
repo: context.repo.repo,
85-
run_id: context.runId,
85+
run_id: `${context.runId}`,
8686
attempt_number: workflow_run.data.run_attempt - 1
8787
});
8888

.github/workflows/test-and-zip-default-themes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,6 @@ jobs:
246246
workflow_id: 'failed-workflow.yml',
247247
ref: 'trunk',
248248
inputs: {
249-
run_id: '${{ github.run_id }}'
249+
run_id: `${context.runId}`,
250250
}
251251
});

0 commit comments

Comments
 (0)