ci: cancel prior test runs for the same git ref (#9819)
This should save on CI quite a bit. This will cancel our GHA runs when you push to the same ref, except for `main`, where I want to make sure every commit is tested.pull/9705/head
commit
08c9661683
|
|
@ -1,5 +1,10 @@
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
name: Nix
|
name: Nix
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref_name != 'main' && github.ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
required:
|
required:
|
||||||
name: "Required Checks: Nix"
|
name: "Required Checks: Nix"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,11 @@ on:
|
||||||
|
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
|
# We only want the latest commit to test for any non-main ref.
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref_name != 'main' && github.ref || github.run_id }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
required:
|
required:
|
||||||
name: "Required Checks: Test"
|
name: "Required Checks: Test"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue