3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-30 05:01:40 +00:00
changed-files/.github/workflows/workflow-run-example.yml

21 lines
473 B
YAML
Raw Normal View History

name: Workflow Run Example
on:
workflow_run:
workflows: [Matrix Test]
types: [completed]
permissions:
contents: read
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'