chore: create workflow-run-test.yml (#1828)

This commit is contained in:
Tonye Jack 2024-01-06 10:50:54 -07:00 committed by GitHub
parent 0e8d796ee0
commit fdccafbb6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
.github/workflows/workflow-run-test.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Workflow Run Exmaple
on:
workflow_run:
workflows: [Matrix Test]
types: [completed]
jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: echo 'The triggering workflow passed'
on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- run: echo 'The triggering workflow failed'