chore: create workflow-run-test.yml (#1828)
This commit is contained in:
parent
0e8d796ee0
commit
fdccafbb6e
17
.github/workflows/workflow-run-test.yml
vendored
Normal file
17
.github/workflows/workflow-run-test.yml
vendored
Normal 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'
|
Loading…
x
Reference in New Issue
Block a user