Skip to content

Commit 7dd515d

Browse files
author
Vasu Jaganath
committed
cancel workflow if the PR is updated
1 parent 6d25491 commit 7dd515d

10 files changed

+50
-0
lines changed

.github/workflows/build_and_test_mac.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
913
env:
1014
BUILD_TYPE: Release
1115

.github/workflows/build_and_test_ubuntu.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
913
env:
1014
BUILD_TYPE: Release
1115
PYTHON_VER: 3.8

.github/workflows/build_and_test_windows.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ on:
66
pull_request:
77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
913
env:
1014
BUILD_TYPE: Release
1115

1216
jobs:
17+
1318
Build_and_Run_GTest:
1419
name: Build and Run GoogleTest
1520
runs-on: windows-latest

.github/workflows/build_cuda11_wheels.yml

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

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
9+
cancel-in-progress: true
10+
711
jobs:
12+
813
build_wheels:
914
name: Build wheels on ${{ matrix.os }}
1015
runs-on: ${{ matrix.os }}
1116
continue-on-error: true
17+
1218
strategy:
1319
fail-fast: false
1420
matrix:

.github/workflows/build_cuda12_wheels.yml

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

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
9+
cancel-in-progress: true
10+
711
jobs:
12+
813
build_wheels:
914
name: Build wheels on ${{ matrix.os }}
1015
runs-on: ${{ matrix.os }}
1116
continue-on-error: true
17+
1218
strategy:
1319
fail-fast: false
1420
matrix:

.github/workflows/build_wheels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ on:
44
workflow_dispatch:
55
pull_request:
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
9+
cancel-in-progress: true
10+
711
jobs:
12+
813
build_wheels:
914
name: Build wheels on ${{ matrix.os }}
1015
runs-on: ${{ matrix.os }}

.github/workflows/publish_cuda11_pypi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ on:
66

77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
913
jobs:
14+
1015
build_wheels:
1116
name: Build wheels on ${{ matrix.os }}
1217
runs-on: ${{ matrix.os }}

.github/workflows/publish_cuda12_pypi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ on:
66

77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
913
jobs:
14+
1015
build_wheels:
1116
name: Build wheels on ${{ matrix.os }}
1217
runs-on: ${{ matrix.os }}

.github/workflows/publish_docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ on:
77
env:
88
BUILD_TYPE: Release
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
12+
cancel-in-progress: true
13+
1014
jobs:
15+
1116
push_to_registry:
1217
name: Push Docker image to Docker Hub
1318
runs-on: ubuntu-22.04

.github/workflows/publish_pypi.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ on:
66

77
workflow_dispatch:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
11+
cancel-in-progress: true
12+
913
jobs:
14+
1015
build_wheels:
1116
name: Build wheels on ${{ matrix.os }}
1217
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)