Skip to content

Commit bfd0efc

Browse files
committed
ci: add concurrency groups to release pipeline
Change-Id: I781ce2750eb30729e84430ee2e3855f3259d2eb9 Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent 7d5b6c7 commit bfd0efc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ on:
1313
permissions:
1414
contents: read
1515

16+
# Cancel in-progress runs for pull requests when developers push
17+
# additional changes
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
21+
1622
jobs:
1723
test:
1824
name: test

.github/workflows/release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99

1010
permissions: {}
1111

12+
# Cancel in-progress runs for when multiple PRs get merged
13+
# in quickl succession. Ignore this for tag releases though.
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: ${{ !contains(github.ref, 'tags/')}}
17+
1218
jobs:
1319
build:
1420
name: Build Coder Desktop

0 commit comments

Comments
 (0)