[llvm] [Github] Make issue write workflow only run after success/failure (PR #97341)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 1 12:51:58 PDT 2024
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/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
>From 5c3b798c846566d46bb05f5066ff51d365ebcda3 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 1 Jul 2024 19:50:17 +0000
Subject: [PATCH] [Github] Make issue write workflow only run after
success/failure
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
---
.github/workflows/issue-write.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
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
More information about the llvm-commits
mailing list