Skip to content

Commit 5f821c2

Browse files
ci: fix "CI Success" job (#172)
1 parent 79380b5 commit 5f821c2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,21 @@ jobs:
5555
working-directory: .
5656
python-version: ${{ matrix.python-version }}
5757
secrets: inherit
58+
ci_success:
59+
name: "CI Success"
60+
needs: [lint, test]
61+
if: |
62+
always()
63+
runs-on: ubuntu-latest
64+
env:
65+
JOBS_JSON: ${{ toJSON(needs) }}
66+
RESULTS_JSON: ${{ toJSON(needs.*.result) }}
67+
EXIT_CODE: ${{!contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && '0' || '1'}}
68+
steps:
69+
- name: "CI Success"
70+
run: |
71+
echo $JOBS_JSON
72+
echo $RESULTS_JSON
73+
echo "Exiting with $EXIT_CODE"
74+
exit $EXIT_CODE
5875

0 commit comments

Comments
 (0)