Skip to content

Commit f19f30d

Browse files
authored
ci(cd): scope CD concurrency group per ref (#79)
The shared "pages" group cancels pending PR runs whenever another PR queues behind it, letting broken PRs merge without a build. Include github.ref so each ref has its own queue. Closes #78 Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
1 parent 9bcb1f8 commit f19f30d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/continuous-delivery.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ on:
1111
paths:
1212
- 'website/**'
1313

14-
# Prevent parallel deployments when multiple commits are pushed to main
15-
# in a short time.
14+
# Concurrency only matters on main, to avoid parallel Pages
15+
# deployments when several commits land in a short time. The ref is
16+
# included in the group name so PR runs each get their own queue
17+
# and don't cancel each other.
1618
concurrency:
17-
group: "pages"
19+
group: "pages-${{ github.ref }}"
1820
cancel-in-progress: false
1921

2022
permissions: read-all

0 commit comments

Comments
 (0)