Skip to content

Commit

Permalink
Merge pull request #1 from cyber-dojo/from-branch
Browse files Browse the repository at this point in the history
Check from branch
  • Loading branch information
JonJagger authored Oct 17, 2024
2 parents e8ad9ba + b086373 commit 8753f27
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
job-2:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
needs: [ job-1 ]
if: ${{ success() || failure() }}
steps:
- name: step-1 from job-2
run: |
Expand All @@ -71,6 +71,13 @@ jobs:
echo Hello from job-2, step-2
echo "env-var=:${{ env.TEST_UNIT_COVERAGE_IS_COMPLIANT }}:"
job-3:
runs-on: ubuntu-latest
needs: [ job-2 ]
steps:
- name: step-1 from job-3
run: |
echo Hello from job-3, step-1
# plain exit-42 on job-1,step-1 and success()||failure() on job-1,step-2 means
Expand Down

0 comments on commit 8753f27

Please sign in to comment.