Skip to content

Commit 22f3046

Browse files
committed
Add concurrency to the Key4hep workflows
1 parent 026ea6c commit 22f3046

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/downstream-build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
# Do not edit this file, it will be overwritten!
2+
# The template file can be found in
3+
# https://github.com/key4hep/key4hep-actions/blob/main/workflows/downstream-build.yaml
14
name: downstream-build
25

36
on:
47
pull_request:
58
workflow_dispatch:
69

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
714
jobs:
815
downstream-build:
916
runs-on: ubuntu-latest

.github/workflows/key4hep-build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
schedule:
1313
- cron: '16 5 * * *'
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
1518

1619
jobs:
1720
build:

0 commit comments

Comments
 (0)