Skip to content

Commit 31ba500

Browse files
committed
docs: key the concurrency group on the ref
A constant `pages` group meant every PR docs build contended for one slot. GitHub cancels the pending run in a group when a new one queues, so a burst of Dependabot PRs left all but the last with no `build` check at all -- and `build` is a required status check, so those PRs sat BLOCKED forever. Keyed on github.ref, PR builds no longer collide. cancel-in-progress is on only for pull_request, so a default-branch Pages deployment is never killed mid-flight.
1 parent 2d35df7 commit 31ba500

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ permissions:
2121

2222
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2323
concurrency:
24-
group: "pages"
25-
cancel-in-progress: false
24+
group: docs-${{ github.ref }}
25+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2626

2727
jobs:
2828
# Build documentation

0 commit comments

Comments
 (0)