Cancel running actions for previous commits if there are new pushes on the same branch/tag

This commit is contained in:
Ricki Hirner 2023-05-17 17:58:09 +02:00
parent 5fee2375a5
commit e60723042b
3 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,9 @@ on:
branches: [ "dev-ose" ]
schedule:
- cron: '22 10 * * 1'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:

View File

@ -3,6 +3,9 @@ on:
push:
tags:
- v*
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Create release

View File

@ -1,6 +1,10 @@
name: Development tests
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Tests without emulator
runs-on: ubuntu-latest