Skip to content

Commit

Permalink
Update chaining-jobs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rajurh authored May 15, 2024
1 parent 01d27b4 commit 3c05cc4
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/chaining-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ on:
jobs:

job-1:
name: Job 1
name: Dev
runs-on: ubuntu-latest
steps:
- name: Output for Job 1
run: echo "Hello from Job 1. Run Job 3 equals ${{ github.event.inputs.run-job-3 }}"

job-2:
name: Job 2
name: Test
if: github.event.inputs.run-job-2 == 'true'
runs-on: ubuntu-latest
needs:
Expand All @@ -31,7 +31,7 @@ jobs:
run: echo "Hello from Job 2"

job-3:
name: Job 3
name: SIT
runs-on: ubuntu-latest
needs:
- job-2
Expand All @@ -40,13 +40,22 @@ jobs:
run: echo "Hello from Job 3"

job-4:
name: Job 4
#if: ${{ always() }}
name: UAT
runs-on: ubuntu-latest
#needs:
# - job-2
# - job-3
needs:
- job-3
steps:
- name: Output for Job 4
run: echo "Hello from Job 4"
run: echo "Hello from Job 4"

job-5:
name: Prod
#if: ${{ always() }}
runs-on: ubuntu-latest
needs:
- job-4
- job-3
steps:
- name: Output for Job 5
run: echo "Hello from Job 5"

0 comments on commit 3c05cc4

Please sign in to comment.