Skip to content

Commit 75f10ed

Browse files
committed
[CI] Allow only one concurrent build of the same workflow at a time. Every new attempt to build should cancel already running build.
1 parent e589d35 commit 75f10ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
branches:
99
- master
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
env:
1216
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail"
1317
CMAKE_VERSION: "3.6.1"

0 commit comments

Comments
 (0)