Skip to content

Commit 843f04c

Browse files
committed
. e cancel existing pipeline runs if a new one started
1 parent 40b67d9 commit 843f04c

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.github/workflows/formatJava.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: FormatJava
22
on:
33
push:
4+
5+
# Cancel existing executions when new commits are pushed onto the branch
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
410
jobs:
511
build:
612
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches: [ master ]
88
workflow_dispatch:
99

10+
# Cancel existing executions when new commits are pushed onto the branch
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1015
jobs:
1116
build:
1217
runs-on: ${{ matrix.os }}-latest

.github/workflows/updateMarkdown.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
workflow_dispatch:
66

7+
# Cancel existing executions when new commits are pushed onto the branch
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
712
jobs:
813
update-markdown-snippets:
914
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)