ci: cancel prior test runs for the same git ref
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/9819/head
parent
e5def6f210
commit
d09621fa11
|
|
@ -1,5 +1,10 @@
|
|||
on: [push, pull_request]
|
||||
name: Nix
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name != 'main' && github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
required:
|
||||
name: "Required Checks: Nix"
|
||||
|
|
|
|||
|
|
@ -5,6 +5,11 @@ on:
|
|||
|
||||
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:
|
||||
required:
|
||||
name: "Required Checks: Test"
|
||||
|
|
|
|||
Loading…
Reference in New Issue