Skip to content

Commit d9f3d26

Browse files
committed
CI: cancel workflows when PRs are updated
For zloop, zfs-qemu, and codeql workflows cancel in-progress jobs when the PR is updated. We always let the style checker run since it only takes a few minutes to complete. Relevant GitHub Actions documentation: The following concurrency group cancels in-progress jobs or run on pull_request events only; if github.head_ref is undefined, the concurrency group will fallback to the run ID, which is guaranteed to be both unique and defined for the run. https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue openzfs#16562
1 parent d40d409 commit d9f3d26

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
pull_request:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
711
jobs:
812
analyze:
913
name: Analyze

.github/workflows/zfs-qemu.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ on:
44
push:
55
pull_request:
66

7-
jobs:
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
810

11+
jobs:
912
qemu-vm:
1013
name: qemu-x86
1114
strategy:

.github/workflows/zloop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
pull_request:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
711
jobs:
812
zloop:
913
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)