Skip to content

Commit 974fcec

Browse files
authored
Cancel previous GH commit jobs (#1690)
1 parent 36e3a1f commit 974fcec

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
branches: [ main ]
1111
merge_group:
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
build-client:
1519
name: "PhotonClient Build"

.github/workflows/photon-code-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ on:
1010
branches: [ main ]
1111
merge_group:
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
15+
cancel-in-progress: true
16+
1317
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1418
permissions:
1519
contents: read
1620
pages: write
1721
id-token: write
1822

19-
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref }}
21-
cancel-in-progress: true
22-
2323
jobs:
2424
build-client:
2525
name: "PhotonClient Build"

.github/workflows/photonvision-docs.yml

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

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
1014
env:
1115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1216

.github/workflows/python.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
branches: [ master ]
1313
merge_group:
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
buildAndDeploy:
1721
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)