infra: ci end check (#17986)

This commit is contained in:
Erick Friis 2024-02-22 16:18:50 -08:00 committed by GitHub
parent 9678797625
commit cd806400fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,3 +108,19 @@ jobs:
# grep will exit non-zero if the target message isn't found,
# and `set -e` above will cause the step to fail.
echo "$STATUS" | grep 'nothing to commit, working tree clean'
ci_end:
name: "CI Success"
needs: [lint, test, compile-integration-tests, dependencies, extended-tests]
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: "CI Success"
if: ${{ !failure() }}
run: |
echo "Success"
exit 0
- name: "CI Failure"
if: ${{ failure() }}
run: |
echo "Failure"
exit 1