GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(ci): a newer push to a PR is no longer cancelled by the older pus… · pingdotgg/t3code@a326dea

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • pr-size.yml
    • pr-vouch.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/pr-size.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/pr-size.yml
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ on:
77
permissions:
88
contents: read
99

10+
# Run-level, not job-level: runs join the group when their event arrives, so a newer push
11+
# always supersedes an older one. A job-level group is joined when the job starts, which
12+
# let an older run's slower job cancel the newer head's job and label from a stale diff.
13+
concurrency:
14+
group: pr-size-${{ github.event.pull_request.number }}
15+
cancel-in-progress: true
16+
1017
jobs:
1118
prepare-config:
1219
name: Prepare PR size config
@@ -120,9 +127,6 @@ jobs:
120127
contents: read
121128
issues: read
122129
pull-requests: write
123-
concurrency:
124-
group: pr-size-${{ github.event.pull_request.number }}
125-
cancel-in-progress: true
126130
steps:
127131
# This pull_request_target job may fetch untrusted PR commits only as passive
128132
# git data. Do not add dependency installs, build/test scripts, or cache
Collapse file

‎.github/workflows/pr-vouch.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/pr-vouch.yml
+11-3Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ on:
1515
permissions:
1616
contents: read
1717

18+
# Per-PR events supersede each other at the run level, in arrival order (a job-level group
19+
# is joined when the job starts, so an older run's slower job could cancel the newer one).
20+
# Other comments and pushes get a unique group so they never cancel a PR's run.
21+
concurrency:
22+
group: >-
23+
${{ (github.event_name == 'pull_request_target' ||
24+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '/recheck-vouch')))
25+
&& format('pr-vouch-run-{0}', github.event.pull_request.number || github.event.issue.number)
26+
|| format('pr-vouch-run-{0}', github.run_id) }}
27+
cancel-in-progress: true
28+
1829
jobs:
1930
collect-targets:
2031
name: Collect PR targets
@@ -74,9 +85,6 @@ jobs:
7485
permissions:
7586
contents: read
7687
pull-requests: write
77-
concurrency:
78-
group: pr-vouch-${{ matrix.target.number }}
79-
cancel-in-progress: true
8088
strategy:
8189
fail-fast: false
8290
matrix:

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.