ci: a push cancels its branch's older run, checkout keeps no token (closes #216)
check / check (push) Successful in 1m13s
check / check (push) Successful in 1m13s
Every push queues a run on the shared runner, and a branch pushed again left its older run queued for a head nobody needed. The workflow now puts each branch's runs in one concurrency group with cancel-in-progress, so a new push cancels that branch's older run, queued or running. The group is keyed on the branch, so pushes to other branches never cancel runs on `next` or `main`; a push to `next` itself does cancel the older `next` run. The checkout step no longer writes the token into `.git/config`; `script/cibuild` does not need it. Model: opus-5-5
This commit is contained in:
@@ -1,9 +1,17 @@
|
|||||||
name: check
|
name: check
|
||||||
on: [push]
|
on: [push]
|
||||||
|
# A new push to a branch cancels that branch's older run, queued or running;
|
||||||
|
# runs on other branches, `next` and `main` among them, are left alone.
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# actions/checkout v4.2.2, 2026-02-28
|
# actions/checkout v4.2.2, 2026-02-28
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
# script/cibuild needs no token, so none is left in .git/config.
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
- run: script/cibuild
|
- run: script/cibuild
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ trial run of the finished image: https://git.eeqj.de/sneak/dnswatcher/issues/149
|
|||||||
|
|
||||||
# Completed Steps
|
# Completed Steps
|
||||||
|
|
||||||
|
- 2026-10-02: a push to a branch cancels that branch's older CI run, and the
|
||||||
|
checkout leaves no token in `.git/config` (closes #216).
|
||||||
- 2026-10-02: watcher tests send far fewer queries and a live attempt may take
|
- 2026-10-02: watcher tests send far fewer queries and a live attempt may take
|
||||||
18s; nameserver addresses are asked only for A, AAAA, CNAME (closes #214).
|
18s; nameserver addresses are asked only for A, AAAA, CNAME (closes #214).
|
||||||
- 2026-10-02: the resolver tries root servers, and every other server list it
|
- 2026-10-02: the resolver tries root servers, and every other server list it
|
||||||
|
|||||||
Reference in New Issue
Block a user