diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 1da5a3337a..dd73bbcf83 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -395,3 +395,19 @@ jobs: check-ps-cloud-env: ${{ matrix.e2e-test.check-ps-cloud-env }} check-external-cs-env: ${{ matrix.e2e-test.check-external-cs-env }} apa-proxy: ${{ matrix.e2e-test.apa-proxy }} + + finalize: + if: ${{ always() }} + runs-on: ubuntu-latest + name: Final Results + needs: [check-if-pr-is-approved, check-package-lock, unit-tests, build-libs, e2e, e2e-storybook] + steps: + - name: workflow failure + run: exit 1 + if: ${{ contains(needs.*.result, 'failure') }} + - name: workflow canceled + run: exit 1 + if: ${{ contains(needs.*.result, 'cancelled') }} + - name: workflow success + run: exit 0 + if: ${{ contains(needs.*.result, 'success') }}