Skip to content

Commit aa36676

Browse files
committed
ci: skip the docs preview for nightly upgrade PRs
Every nightly upgrade PR touches docs/packages/<pkg>.yaml, so all 126 of them queue a preview deploy behind the single `website` concurrency group. The surplus runs fail instantly with no jobs at all: tonight 196 of 300 PR runs failed that way, leaving a red check on PRs whose docs change is one `- version:` line. Skip the preview job for those branches. Human PRs keep their preview, and the deploy stays serialized as before.
1 parent ce72084 commit aa36676

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/website.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ jobs:
2626
steps:
2727
- run: true
2828

29+
# The nightly opens one PR per package upgrade, and every one of them
30+
# touches docs/packages/<pkg>.yaml. Queueing a preview deploy for each
31+
# behind the single `website` lock overflows the concurrency queue and
32+
# fails the surplus runs outright, so those PRs get no preview: their doc
33+
# change is one `- version:` line.
2934
preview:
35+
if: "!startsWith(github.head_ref, 'github-actions/nightly-upgrade/')"
3036
needs: [setup]
3137
runs-on: ubuntu-latest
3238
permissions:

0 commit comments

Comments
 (0)