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" ] branches: [ "dev-ose" ]
schedule: schedule:
- cron: '22 10 * * 1' - cron: '22 10 * * 1'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs: jobs:
analyze: analyze:

View file

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

View file

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