Skip to content

Commit af89cb5

Browse files
committed
ci: add concurrency groups and remove redundant tag trigger in docs
1 parent f952f1b commit af89cb5

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/BuildAndPublish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
tags:
88
- 'v*.*.*'
99

10+
concurrency:
11+
group: publish-${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
1013
defaults:
1114
run:
1215
working-directory: python

.github/workflows/BuildAndTest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: BuildAndTest
33
on:
44
workflow_dispatch:
55

6+
concurrency:
7+
group: build-and-test-${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
69
defaults:
710
run:
811
working-directory: python

.github/workflows/cpp-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches: [ main, master ]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: cpp-ci-${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
1013
jobs:
1114
build-and-test:
1215
strategy:

.github/workflows/docs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ on:
44
push:
55
branches:
66
- main
7-
tags:
8-
- 'v*.*.*'
97
paths:
108
- 'docs/**'
119
- 'python/**'
1210
- '.readthedocs.yaml'
1311
- '.github/workflows/docs.yml'
1412
workflow_dispatch:
1513

14+
concurrency:
15+
group: docs-${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1618
jobs:
1719
trigger-rtd:
1820
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)