Skip to content

Commit

Permalink
Invert the 'testing-done' condition
Browse files Browse the repository at this point in the history
Because skipping indicates success, even if preceded by a failing job...
  • Loading branch information
ehuelsmann committed Oct 22, 2023
1 parent 94aa909 commit 2697096
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,13 @@ jobs:
testing-done:
runs-on: ubuntu-latest
needs: [ build ]
if: failure()
# This job gets skipped on successful completion of the dependent jobs
# Skipped jobs are interpreted as 'success' condition in branch protection rules...
steps:
- name: Done
- name: Failed
run: |
echo "DONE!"
exit 1
build-dev:
if: github.event.action == 'closed' && github.event.pull_request.merged == true
Expand Down

0 comments on commit 2697096

Please sign in to comment.