Skip to content

Commit

Permalink
Add concurrency to the Key4hep workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jul 8, 2024
1 parent 281b93b commit 920c694
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/downstream-build.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Do not edit this file, it will be overwritten!
# The template file can be found in
# https://github.com/key4hep/key4hep-actions/blob/main/workflows/downstream-build.yaml
name: downstream-build

on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
downstream-build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/key4hep-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
schedule:
- cron: '16 5 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
Expand Down

0 comments on commit 920c694

Please sign in to comment.