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: |