🤖 Add concurrency to jobs

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka 2023-07-20 09:04:01 +02:00
parent 105f8dec5f
commit 2c0bb11afd
4 changed files with 16 additions and 0 deletions

View File

@ -8,6 +8,10 @@ on:
tags: tags:
- '*' - '*'
concurrency:
group: image-${{ github.ref || github.head_ref }}
cancel-in-progress: true
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -6,6 +6,11 @@ on:
pull_request: pull_request:
paths: paths:
- '**' - '**'
concurrency:
group: lint-${{ github.ref || github.head_ref }}
cancel-in-progress: true
env: env:
FORCE_COLOR: 1 FORCE_COLOR: 1
jobs: jobs:

View File

@ -9,6 +9,10 @@ on:
- '*' - '*'
pull_request: pull_request:
concurrency:
group: test-${{ github.ref || github.head_ref }}
cancel-in-progress: true
jobs: jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -7,6 +7,9 @@ on:
- master - master
tags: tags:
- '*' - '*'
concurrency:
group: tool-image-${{ github.ref || github.head_ref }}
cancel-in-progress: true
jobs: jobs:
docker: docker: