Skip to content

Commit

Permalink
CI: fix conditions on complete step (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstriebel authored Sep 28, 2021
1 parent 246cbfa commit e551391
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,13 @@ jobs:

complete:
needs: [webknossos_linux, wkcuber_linux, wkcuber_win, wkcuber_mac, wkcuber_docker, docs]
if: |
always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled')
if: always()
runs-on: ubuntu-latest
steps:
- name: Check failure
if: |
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')
run: exit 1
- name: Success
run: echo Success!

0 comments on commit e551391

Please sign in to comment.