only run after the actually (and non skipped) workflow

This commit is contained in:
dcvz 2024-08-01 13:09:46 +02:00
parent 6598da434e
commit b965d7b8e2

View file

@ -1,13 +1,17 @@
name: update-pr-artifacts
on:
workflow_run:
workflows: [validate]
workflows: [validate-external, validate-internal]
types:
- completed
jobs:
update-pr-artifacts:
runs-on: ubuntu-latest
if: github.event.workflow_run.event == 'pull_request'
if: |
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' &&
(github.event.workflow_run.name == 'validate-external' ||
github.event.workflow_run.name == 'validate-internal')
name: Update PR Artifacts
steps:
- name: Get PR Number