Skip to content

Commit

Permalink
Add workflow success|failure experiment mod
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed May 13, 2024
1 parent 1c726f7 commit 2a94d2c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: step-1 from job-1
run:
run: |
echo Hello from job-1, step-1
#exit 42
exit 1
exit 42
- name: step-2 from job-1
# if: ${{ success() || failure() }}
if: ${{ success() || failure() }}
run:
echo Hello from job-1, step-1

Expand All @@ -34,5 +33,10 @@ jobs:
echo Hello from job-2, step-2


# plain exit-42 on job-1,step-1 and success()||failure() on job-1,step-2 means job-2 DOES run
# plain exit-42 on job-1,step-1 and NO success()||failure() on job-1,step-2 means job-1,step-2 DOES run, job-2 DOES run
# plain exit-42 on job-1,step-1 and success()||failure() on job-1,step-2 means
# job-1,step-2 runs?
# job-2 runs?

# plain exit-42 on job-1,step-1 and NO success()||failure() on job-1,step-2 means
# job-1,step-2 runs?
# job-2 runs?

0 comments on commit 2a94d2c

Please sign in to comment.