Reference for concurrent steps within a GitHub Actions job and the background, wait, wait-all, cancel, and parallel keywords.
中文简介正在准备中。当前显示原文说明。
stablyai/skills52026年10月17日 更新
Reduce wasted GitHub Actions PR checks with stable concurrency keys, cancellation of superseded runs, and job-level draft guards.
中文简介正在准备中。当前显示原文说明。
安装前可以查看交给 AI 代理的指令内容。
For PR checks, cancel superseded runs and skip jobs while the PR is a draft:
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
github.workflow; keep caller and callee concurrency keys distinct.github.event.pull_request.draft != true to each check job's existing if, including reusable-workflow callers and aggregate jobs. Job guards prevent runner allocation; step guards still allocate runners.ready_for_review and converted_to_draft. The former starts checks when review begins; the latter lets a replacement run cancel old work before its jobs skip.References: concurrency, PR events.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Reference for concurrent steps within a GitHub Actions job and the background, wait, wait-all, cancel, and parallel keywords.
中文简介正在准备中。当前显示原文说明。