Skip to content

Commit cc41bca

Browse files
authored
[SEDONA-732] Stop previously running jobs when after new push to the PR (#1924)
* SEDONA-732 cancel the pipelines after update * SEDONA-732 cancel the pipelines after update * SEDONA-732 cancel the pipelines after update
1 parent 0ce82e8 commit cc41bca

10 files changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ on:
3333
env:
3434
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
3535

36+
concurrency:
37+
group: ${{ github.workflow }}-${{ github.ref }}
38+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
39+
3640
permissions:
3741
contents: read
3842

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ on:
2929
env:
3030
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
3131

32+
concurrency:
33+
group: ${{ github.workflow }}-${{ github.ref }}
34+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
35+
3236
jobs:
3337
build:
3438
runs-on: ubuntu-22.04

.github/workflows/example.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ on:
3333
permissions:
3434
contents: read
3535

36+
concurrency:
37+
group: ${{ github.workflow }}-${{ github.ref }}
38+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
39+
3640
jobs:
3741
build:
3842
runs-on: ubuntu-22.04

.github/workflows/first-interaction.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ on:
2323
pull_request:
2424
types: [opened]
2525

26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
29+
2630
jobs:
2731
first-interaction:
2832
runs-on: ubuntu-latest

.github/workflows/java.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ env:
5050
permissions:
5151
contents: read
5252

53+
concurrency:
54+
group: ${{ github.workflow }}-${{ github.ref }}
55+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
56+
5357
jobs:
5458
build:
5559
runs-on: ubuntu-22.04

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on: [pull_request]
2222
permissions:
2323
contents: read
2424

25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
28+
2529
jobs:
2630
pre-commit:
2731
name: Run pre-commit # https://pre-commit.com/

.github/workflows/python-extension.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ on:
4242
permissions:
4343
contents: read
4444

45+
concurrency:
46+
group: ${{ github.workflow }}-${{ github.ref }}
47+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
48+
4549
jobs:
4650
build:
4751
strategy:

.github/workflows/python-wheel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ on:
3939
- 'python/**'
4040
- '.github/workflows/python-wheel.yml'
4141

42+
concurrency:
43+
group: ${{ github.workflow }}-${{ github.ref }}
44+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
45+
4246
jobs:
4347
build:
4448
strategy:

.github/workflows/python.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ env:
4949
permissions:
5050
contents: read
5151

52+
concurrency:
53+
group: ${{ github.workflow }}-${{ github.ref }}
54+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
55+
5256
jobs:
5357
build:
5458
runs-on: ubuntu-22.04
@@ -87,6 +91,7 @@ jobs:
8791
- spark: '3.3.0'
8892
scala: '2.12.8'
8993
python: '3.8'
94+
9095
env:
9196
VENV_PATH: /home/runner/.local/share/virtualenvs/python-${{ matrix.python }}
9297
steps:

.github/workflows/r.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ env:
4343
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
4444
DO_NOT_TRACK: true
4545

46+
concurrency:
47+
group: ${{ github.workflow }}-${{ github.ref }}
48+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
49+
4650
jobs:
4751
build:
4852
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)