Skip to content

Commit cb7bd4c

Browse files
committed
GHA: Cancel in-progress jobs if pushing to PR
See https://docs.github.com/en/actions/using-jobs/using-concurrency Should reduce the resource usage a bit and may speed up things.
1 parent e0eb2db commit cb7bd4c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/docs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
schedule:
1010
- cron: '0 7 * * *'
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
documentation:
1418

.github/workflows/tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches: [ master ]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
1013

1114
jobs:
1215
test:

0 commit comments

Comments
 (0)