Skip to content

Commit 6e80799

Browse files
authored
Cancel previous jobs on re-push changes from PR branch (#983)
* Cancel previous jobs on re-push changes from PR branch * Update docs_preview.yaml * Update docs_release.yaml
1 parent c5256a8 commit 6e80799

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/allowed_dirs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ on:
66

77
jobs:
88
build:
9+
concurrency:
10+
group: check-allowed-dirs-${{ github.ref }}
11+
cancel-in-progress: true
912
runs-on: ubuntu-latest
10-
1113
steps:
1214
- uses: actions/checkout@v3
1315

.github/workflows/docs_preview.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
jobs:
1111
post-build:
1212
permissions: write-all
13+
concurrency:
14+
group: preview-documentation-${{ github.ref }}
15+
cancel-in-progress: true
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Upload

.github/workflows/docs_release.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111

1212
jobs:
1313
release:
14+
concurrency:
15+
group: release-documentation-${{ github.ref }}
16+
cancel-in-progress: true
1417
runs-on: ubuntu-latest
1518
steps:
1619
- name: Checkout

0 commit comments

Comments
 (0)