🔧 cancel previous CI runs if a new push is made (#1251)

Cancel previous CI runs if a new push is made. Thus saving a bit of CI
resources.
This commit is contained in:
Matiss Janis Aboltins
2023-07-01 21:26:02 +01:00
committed by GitHub
parent de41301a44
commit 168b38fc4b
8 changed files with 34 additions and 0 deletions

View File

@@ -13,6 +13,10 @@ on:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
api:
runs-on: ubuntu-latest