Skip to content

Commit f79a93c

Browse files
committed
ci: Cancel ongoing builds on new changes
Reduce the amount of CI cycles by canceling ongoing builds if a PR is updated. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent 1360f1e commit f79a93c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on: [push, pull_request]
55
permissions:
66
contents: read
77

8+
# Cancel ongoing builds on new changes
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
11+
cancel-in-progress: true
12+
813
jobs:
914
build:
1015
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)