From 4f53b0593e64ce8e8df386c2c1719590411b614e Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Fri, 2 Oct 2026 02:35:03 +0100 Subject: [PATCH] fix(go-pr): skip the report job when the run is cancelled A run cancelled by a newer push still ran the report job. The gate then failed and marked the superseded run as failed. The report job now skips when the run is cancelled. --- .github/workflows/go-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go-pr.yaml b/.github/workflows/go-pr.yaml index 069b747..8ac9a91 100644 --- a/.github/workflows/go-pr.yaml +++ b/.github/workflows/go-pr.yaml @@ -345,7 +345,7 @@ jobs: name: PR Checks Report runs-on: ${{ fromJSON(startsWith(inputs.runner || vars.SHARED_ACTIONS_RUNNER || 'ubuntu-latest', '{') && (inputs.runner || vars.SHARED_ACTIONS_RUNNER || 'ubuntu-latest') || format('"{0}"', inputs.runner || vars.SHARED_ACTIONS_RUNNER || 'ubuntu-latest')) }} needs: [pre, static-analysis, security-scan, gosec, goreleaser-check, codeql, test] - if: always() && needs.pre.outputs.skip != 'true' + if: ${{ !cancelled() && needs.pre.outputs.skip != 'true' }} timeout-minutes: 10 permissions: contents: read