From 116909dadb2029336b3dd5cadd66da43da5cd947 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Mon, 20 Feb 2023 09:29:21 +0100 Subject: [PATCH] fix: checks-done step must succeed --- .github/workflows/default.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 7a792a213b..6f44bd3505 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -28,10 +28,21 @@ jobs: needs: [init] checks-done: + if: ${{ always() }} runs-on: ubuntu-latest steps: - name: 🎉 Checks done - run: echo "🎉 All tests & build were successful." + run: | + resultBuild="${{ needs.build.result }}" + resultTest="${{ needs.test.result }}" + resultLint="${{ needs.lint.result }}" + if [[ $resultBuild == "success" && $resultTest == "success" && $resultLint == "success" ]]; then + echo "🎉 All tests & build were successful." + exit 0 + else + echo "Some tests were failing." + exit 1 + fi needs: [build, test, lint] deploy: