Commit d09f914
Cancel stale On PR runs so only current HEAD determines status (#775)
Adds a concurrency group on the On PR workflow with
cancel-in-progress: true.
Context: the upstream-release-docs workflow pushes multiple
commits in quick succession to a Renovate PR branch — the skill's
content commit, then a prettier/eslint autofix commit that cleans
any formatting drift the skill introduced. Without concurrency,
the On PR workflow runs fully on each intermediate commit and the
first one (pre-autofix) can fail lint. The failure lingers in the
check history even though the final commit passes.
With cancel-in-progress, when the autofix commit lands, the stale
On PR run on the skill commit is cancelled. Only the final run
determines the check status. Matches standard GitHub Actions
practice for PR CI.
Concurrency group is keyed on pull_request.number so PRs can't
cancel each other's runs.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f89e5b1 commit d09f914
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
9 | 20 | | |
10 | 21 | | |
11 | 22 | | |
| |||
0 commit comments