Skip to content

Commit

Permalink
Sequential workflows based on conclusion example - final workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olsido authored Jul 19, 2024
1 parent 41015ed commit 05d66e6
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 8 - Sequential Workflows - Final

on:
workflow_run:
workflows: ["8 - Sequential Workflows - Success", "8 - Sequential Workflows - Failure"]
types: [completed]

jobs:
on-success:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Success Job Step
run: echo "The previous workflow succeeded, so this job will run."

on-failure:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
steps:
- name: Failure Job Step
run: echo "The previous workflow failed, so this job will run."

0 comments on commit 05d66e6

Please sign in to comment.