Skip to content

Commit

Permalink
[Github] Make issue write workflow only run after success/failure (ll…
Browse files Browse the repository at this point in the history
…vm#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 llvm#97294
  • Loading branch information
boomanaiden154 authored and lravenclaw committed Jul 3, 2024
1 parent 8791cab commit 0139d52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/issue-write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ jobs:
permissions:
pull-requests: write
if: >
github.event.workflow_run.event == 'pull_request'
github.event.workflow_run.event == 'pull_request' &&
(
github.event.workflow_run.conclusion == 'success' ||
github.event.workflow_run.conclusion == 'failure'
)
steps:
- name: 'Download artifact'
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
Expand Down

0 comments on commit 0139d52

Please sign in to comment.