Skip to content

Commit 16187c3

Browse files
committed
Add concurrency to workflows
1 parent 2380db5 commit 16187c3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build_and_release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
os: [ubuntu-18.04, ubuntu-20.04, macos-latest, windows-latest]
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
22+
cancel-in-progress: true
2023
timeout-minutes: 20
2124

2225
steps:
@@ -94,6 +97,9 @@ jobs:
9497
calc_hash:
9598
needs: [build_and_release]
9699
runs-on: ubuntu-latest
100+
concurrency:
101+
group: ${{ github.workflow }}-${{ github.job }}
102+
cancel-in-progress: true
97103
timeout-minutes: 20
98104
env:
99105
SHA_DIR: sha

.github/workflows/build_docker_image_multi_arch.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
build-docker-images:
1111
runs-on: ubuntu-latest
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.job }}
14+
cancel-in-progress: true
1215
timeout-minutes: 30
1316
permissions:
1417
contents: read

0 commit comments

Comments
 (0)