From cd806400fc81c89ed64f92b9a52a85b7f74eddc3 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Thu, 22 Feb 2024 16:18:50 -0800 Subject: [PATCH] infra: ci end check (#17986) --- .github/workflows/_all_ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/_all_ci.yml b/.github/workflows/_all_ci.yml index f6b27f029d1..1531071885e 100644 --- a/.github/workflows/_all_ci.yml +++ b/.github/workflows/_all_ci.yml @@ -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