Files
gstack/.github/workflows/actionlint.yml
T
Garry TanandClaude Fable 5 6e8e987133 ci: cancel superseded actionlint and skill-docs runs
actionlint.yml and skill-docs.yml trigger on both push and pull_request
with no concurrency group, so every push to an active branch left the
previous (now-obsolete) runs queued or running — twice per commit on
same-repo PR branches. Add the same cancel-in-progress concurrency
groups the heavier workflows already use, plus a free static tripwire
test that fails CI if a push+pull_request workflow ever ships again
without cancel-in-progress.

Contributed by @jbetala7 (PR #2053).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 20:21:01 -07:00

17 lines
509 B
YAML

name: Workflow Lint
on: [push, pull_request]
# Cancel superseded runs for the same branch (matches evals.yml,
# windows-free-tests.yml, etc.). head_ref is set on pull_request; ref_name is
# the fallback for push so a rapid push series doesn't pile up stale lint runs.
concurrency:
group: actionlint-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
actionlint:
runs-on: ubicloud-standard-8
steps:
- uses: actions/checkout@v4
- uses: rhysd/actionlint@v1.7.11