Commit e571855f authored by Gustavo Henrique Nihei's avatar Gustavo Henrique Nihei Committed by Gustavo Henrique Nihei
Browse files

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: default avatarGustavo Henrique Nihei <gustavo.nihei@espressif.com>
parent 67b73d3c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -10,6 +10,10 @@ on:

name: Espressif

concurrency:
  group: espressif-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs:
  environment:
    strategy:
+4 −0
Original line number Diff line number Diff line
@@ -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:
+4 −0
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -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
+4 −0
Original line number Diff line number Diff line
@@ -7,6 +7,10 @@ on:

name: Sim

concurrency:
  group: sim-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs:
  environment:
    strategy: