Skip to content

Commit 4d29994

Browse files
authored
Let a newer Deploy Docs run cancel the one in progress (#3633)
1 parent 0acea60 commit 4d29994

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/deploy-docs.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ on:
2626

2727
concurrency:
2828
group: deploy-docs
29-
cancel-in-progress: false
29+
# Newest run wins. build-docs.sh builds the tips of main and v1.x, not the
30+
# triggering commit, so a newer run publishes everything an older one would,
31+
# and Pages takes the site as one artifact, so a cancelled run leaves the live
32+
# site as it was. With `false`, a run that never gets a runner holds the group
33+
# and every later deploy waits behind it.
34+
cancel-in-progress: true
3035

3136
jobs:
3237
deploy-docs:

0 commit comments

Comments
 (0)