diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 5375840b504..279a8cd7f46 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -20,7 +20,10 @@ jobs: name: Build, test & deploy runs-on: ubuntu-latest needs: check-permissions - if: github.event_name == 'workflow_call' || needs.check-permissions.outputs.allowed == 'true' + if: >- + always() && + !cancelled() && + (github.event_name == 'workflow_call' || needs.check-permissions.outputs.allowed == 'true') env: SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} @@ -38,7 +41,6 @@ jobs: - name: Check out project if: github.event_name == 'workflow_call' uses: actions/checkout@v4 - - name: Set up and build project uses: ./.github/actions/setup-project