[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
This commit is contained in:
Aiden Grossman
2024-07-01 13:38:33 -07:00
committed by GitHub
parent ea93c538c7
commit da3e60bbe7

View File

@@ -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