Reference for concurrent steps within a GitHub Actions job and the background, wait, wait-all, cancel, and parallel keywords.
The English summary is being prepared. Showing the original description.
Reduce wasted GitHub Actions PR checks with stable concurrency keys, cancellation of superseded runs, and job-level draft guards.
The English summary is being prepared. Showing the original description.
Review the instructions the agent will receive before you install.
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.
No reviews yet. Tell others what you thought.
No login needed. Share how it worked for you, ask a question, or note where it did not run.
No comments yet. Be the first to write one.
Reference for concurrent steps within a GitHub Actions job and the background, wait, wait-all, cancel, and parallel keywords.
The English summary is being prepared. Showing the original description.