Skip to content

Commit 345ccea

Browse files
gmarullnashif
authored andcommitted
ci: doc-build: use concurrency group to cancel in progress builds
Add the documentation build jobs to a concurrency group so that branch force pushes will automatically cancel in progress jobs. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 2048608 commit 345ccea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/doc-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
name: "Documentation Build (HTML)"
3838
runs-on: ubuntu-latest
3939
timeout-minutes: 30
40+
concurrency:
41+
group: doc-build-html-${{ github.ref }}
42+
cancel-in-progress: true
4043

4144
steps:
4245
- name: checkout
@@ -91,6 +94,9 @@ jobs:
9194
runs-on: ubuntu-latest
9295
container: texlive/texlive:latest
9396
timeout-minutes: 30
97+
concurrency:
98+
group: doc-build-pdf-${{ github.ref }}
99+
cancel-in-progress: true
94100

95101
steps:
96102
- name: checkout

0 commit comments

Comments
 (0)