add concurrency to test actions (#1975)

configured to only cancel workflows in PRs, but not on main branch
origins in #1933, but opitmized to not cancel workflows of non PRs
This commit is contained in:
Matthias Wild 2022-12-13 19:53:10 +01:00 committed by GitHub
parent 1fd605604f
commit 1d78e1af9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -9,6 +9,10 @@ on:
- 'main'
- 'development'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
matrix:
strategy:

View File

@ -9,6 +9,10 @@ on:
- 'main'
- 'development'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
matrix:
strategy: