[ACA-4666] Make finalize fail if any previous check fails (#3024)

This commit is contained in:
MichalKinas
2023-03-02 14:02:46 +01:00
committed by GitHub
parent 01f7e3c287
commit 7bf6c8f137

View File

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