From e60723042b6f073a209cf2dfd3bf98de2be82b6a Mon Sep 17 00:00:00 2001 From: Ricki Hirner Date: Wed, 17 May 2023 17:58:09 +0200 Subject: [PATCH] Cancel running actions for previous commits if there are new pushes on the same branch/tag --- .github/workflows/codeql.yml | 3 +++ .github/workflows/release.yml | 3 +++ .github/workflows/test-dev.yml | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4317df73..fb922c74 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -8,6 +8,9 @@ on: branches: [ "dev-ose" ] schedule: - cron: '22 10 * * 1' +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: analyze: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b81bb4c..c1aa5b13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,9 @@ on: push: tags: - v* +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true jobs: build: name: Create release diff --git a/.github/workflows/test-dev.yml b/.github/workflows/test-dev.yml index ce62b4e9..d0ae4254 100644 --- a/.github/workflows/test-dev.yml +++ b/.github/workflows/test-dev.yml @@ -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