Skip to content

Commit da3e60b

Browse files
[Github] Make issue write workflow only run after success/failure (#97341)
This patch makes the issue write workflow only run after success or failure of the workflow invoking it, preventing it from running where the original workflow was skipped. Fixes #97294
1 parent ea93c53 commit da3e60b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/issue-write.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ jobs:
1818
permissions:
1919
pull-requests: write
2020
if: >
21-
github.event.workflow_run.event == 'pull_request'
21+
github.event.workflow_run.event == 'pull_request' &&
22+
(
23+
github.event.workflow_run.conclusion == 'success' ||
24+
github.event.workflow_run.conclusion == 'failure'
25+
)
2226
steps:
2327
- name: 'Download artifact'
2428
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1

0 commit comments

Comments
 (0)