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.
This commit is contained in:
2026-10-02 02:35:03 +01:00
parent c9823f320e
commit 4f53b0593e
+1 -1
View File
@@ -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