Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/FormatCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ on:
type: boolean

concurrency:
group: "${{ inputs.concurrent-jobs && github.run_id || github.ref }}:${{ github.workflow }}"
# Key on the PR number for `pull_request_target` events; `github.ref` would
# resolve to the target branch (`refs/heads/main`) and would put every PR's
# format check into the same group, causing each new PR to cancel all other
# in-progress format checks across the repo. Fall back to `github.ref` for
# non-PR triggers.
group: "${{ inputs.concurrent-jobs && github.run_id || github.event.pull_request.number || github.ref }}:${{ github.workflow }}"
cancel-in-progress: ${{ !inputs.concurrent-jobs && inputs.cancel-in-progress }}

jobs:
Expand Down