Skip to content

Commit

Permalink
Merge pull request #3694 from canonical/update-actions-cancel-behavior
Browse files Browse the repository at this point in the history
[ci] Update GHA to only cancel for merge queues
  • Loading branch information
sharder996 authored Oct 10, 2024
2 parents 6dd1800 + a189df4 commit 521a43e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number && format('pr{0}', github.event.number) || github.run_id }}
cancel-in-progress: true
cancel-in-progress: ${{ github.event_name == 'merge_group' }}

jobs:
Lint:
Expand Down Expand Up @@ -73,6 +73,7 @@ jobs:

strategy:
matrix: ${{ fromJSON(needs.GetMatrix.outputs.matrix) }}
fail-fast: ${{ github.event_name == 'merge_group' }}

runs-on: ubuntu-latest

Expand Down

0 comments on commit 521a43e

Please sign in to comment.