Skip to content

Commit 347f767

Browse files
committed
ci: simplify ci-ok
1 parent e491be4 commit 347f767

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/CI.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,10 @@ jobs:
7777
name: CI OK
7878
runs-on: ubuntu-latest
7979
if: always()
80-
needs: [test, check]
81-
env:
82-
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') }}
80+
needs:
81+
- test
82+
- check
8383
steps:
84-
- name: Check for failure
85-
run: |
86-
echo $FAILURE
87-
if [ "$FAILURE" = "false" ]; then
88-
exit 0
89-
else
90-
exit 1
91-
fi
84+
- name: Exit with error if some jobs are not successful
85+
run: exit 1
86+
if: ${{ always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')) }}

0 commit comments

Comments
 (0)