Skip to content

Commit 73625d2

Browse files
authored
ci: Fix pages workflow concurrency (#493)
Grouping on PR number or git ref (branch or tag). Without this all pages builds were included in the same concurrency group, meaning that concurrent PR builds were leading to skipped workflows. As this is a required check, that meant that PRs could not be merged without opening/closing the PR - not a fun thing to have to do!
1 parent ea951bc commit 73625d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions:
2222
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2323
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2424
concurrency:
25-
group: "pages"
25+
group: "pages-${{github.event.pull_request.number || github.ref_name}}"
2626
cancel-in-progress: false
2727

2828
# Default to bash

0 commit comments

Comments
 (0)