From 7bf6c8f137cbed273b17ed1caf717dc1f7b75140 Mon Sep 17 00:00:00 2001 From: MichalKinas <113341662+MichalKinas@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:02:46 +0100 Subject: [PATCH] [ACA-4666] Make finalize fail if any previous check fails (#3024) --- .github/workflows/pull-request.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 4eabec31e..2ab63f628 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -208,6 +208,7 @@ jobs: aws-region: ${{ env.AWS_REGION }} finalize: + if: ${{ always() }} needs: [lint, build, unit-tests, e2es, e2es-playwright] name: 'Finalize' runs-on: ubuntu-latest @@ -218,6 +219,14 @@ jobs: fetch-depth: 2 - uses: Alfresco/alfresco-build-tools/.github/actions/get-commit-message@v1.35.0 + - name: Check previous jobs status + if: >- + ${{ + contains(needs.*.result, 'failure') + || contains(needs.*.result, 'cancelled') + }} + run: exit 1 + - name: Check ADF link shell: bash run: |