mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-10-12 04:54:48 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user