File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 32
32
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
33
33
with :
34
34
script : |
35
- const failure_regex = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)/
35
+ // The "The run was canceled by" message comes from a user manually canceling a workflow
36
+ // the "higher priority" message comes from github canceling a workflow because the user updated the change.
37
+ // And the "exit code 1" message indicates a genuine failure.
38
+ const failure_regex = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)|(The run was canceled by)/
36
39
const preemption_regex = /(The runner has received a shutdown signal)|(The operation was canceled)/
37
40
38
41
const wf_run = context.payload.workflow_run
@@ -167,7 +170,7 @@ jobs:
167
170
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
168
171
with :
169
172
script : |
170
- const FAILURE_REGEX = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)/
173
+ const FAILURE_REGEX = /(Process completed with exit code 1.)|(Canceling since a higher priority waiting request)|(The run was canceled by) /
171
174
const PREEMPTION_REGEX = /(The runner has received a shutdown signal)|(The operation was canceled)/
172
175
173
176
function log(msg) {
You can’t perform that action at this time.
0 commit comments