ci: Define concurrency groups for cancelling duplicate jobs
This commit will force running jobs of a given PR to be cancelled once the same branch is updated, avoiding the CI wasting time testing outdated content. Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
67b73d3c79
commit
e571855f58
|
@ -10,6 +10,10 @@ on:
|
|||
|
||||
name: Espressif
|
||||
|
||||
concurrency:
|
||||
group: espressif-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
environment:
|
||||
strategy:
|
||||
|
|
|
@ -6,6 +6,10 @@ on:
|
|||
|
||||
name: FIH hardening
|
||||
|
||||
concurrency:
|
||||
group: fih-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
config:
|
||||
strategy:
|
||||
|
|
|
@ -6,6 +6,10 @@ on:
|
|||
|
||||
name: imgtool
|
||||
|
||||
concurrency:
|
||||
group: imgtool-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
environment:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -7,6 +7,10 @@ on:
|
|||
|
||||
name: Mynewt
|
||||
|
||||
concurrency:
|
||||
group: mynewt-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
environment:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -7,6 +7,10 @@ on:
|
|||
|
||||
name: Sim
|
||||
|
||||
concurrency:
|
||||
group: sim-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
environment:
|
||||
strategy:
|
||||
|
|
Loading…
Reference in New Issue