Skip to content

Commit fe45e1c

Browse files
authored
ci: add concurrency groups to release pipeline (#68)
Add concurrency groups to GitHub Actions workflows Adds concurrency groups to CI and release workflows to automatically cancel in-progress runs when new changes are pushed. This prevents unnecessary resource usage and speeds up feedback loops for developers. Change-Id: I781ce2750eb30729e84430ee2e3855f3259d2eb9 Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 7d5b6c7 commit fe45e1c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
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

Lines changed: 6 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy