mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 06:01:19 +00:00
workflows: add concurrency group to check-by-name workflow (again)
This is the second attempt to add a concurrency group to the check-by-name in hopes that it will reduce unnecessary load on the CI system (wasted electricity) despite free cost. first attempt: https://github.com/NixOS/nixpkgs/pull/306072 revert: https://github.com/NixOS/nixpkgs/pull/306430
This commit is contained in:
parent
afa610b882
commit
16121d4dc6
7
.github/workflows/check-by-name.yml
vendored
7
.github/workflows/check-by-name.yml
vendored
@ -20,6 +20,13 @@ permissions:
|
|||||||
# We need this permission to cancel the workflow run if there's a merge conflict
|
# We need this permission to cancel the workflow run if there's a merge conflict
|
||||||
actions: write
|
actions: write
|
||||||
|
|
||||||
|
# Create a check-by-name concurrency group based on the pull request number. if
|
||||||
|
# an event triggers a run on the same PR while a previous run is still in
|
||||||
|
# progress, the previous run will be canceled and the new one will start.
|
||||||
|
concurrency:
|
||||||
|
group: check-by-name-${{ github.event.pull_request.number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
# This needs to be x86_64-linux, because we depend on the tooling being pre-built in the GitHub releases
|
# This needs to be x86_64-linux, because we depend on the tooling being pre-built in the GitHub releases
|
||||||
|
Loading…
Reference in New Issue
Block a user