[llvm] [Github] Make issue write workflow only run after success/failure (PR #97341)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 12:52:26 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
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
---
Full diff: https://github.com/llvm/llvm-project/pull/97341.diff
1 Files Affected:
- (modified) .github/workflows/issue-write.yml (+5-1)
``````````diff
diff --git a/.github/workflows/issue-write.yml b/.github/workflows/issue-write.yml
index 616b323ad5fac..d4814a2fe9014 100644
--- a/.github/workflows/issue-write.yml
+++ b/.github/workflows/issue-write.yml
@@ -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 at 6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1
``````````
</details>
https://github.com/llvm/llvm-project/pull/97341
More information about the llvm-commits
mailing list