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:
Gustavo Henrique Nihei 2021-12-17 10:35:59 -03:00 committed by Gustavo Henrique Nihei
parent 67b73d3c79
commit e571855f58
5 changed files with 20 additions and 0 deletions

View File

@ -10,6 +10,10 @@ on:
name: Espressif
concurrency:
group: espressif-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
environment:
strategy:

View File

@ -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:

View File

@ -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

View File

@ -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

View File

@ -7,6 +7,10 @@ on:
name: Sim
concurrency:
group: sim-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
environment:
strategy: