From c8811aa8709f1cb547d9fe9f71119b3fd504835e Mon Sep 17 00:00:00 2001 From: ismay Date: Tue, 11 Jun 2024 10:55:29 +0200 Subject: [PATCH] ci: cancel previous runs if not on release branch --- .github/workflows/dhis2-verify-app.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index 44b044d7..1d1a8a3f 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -1,10 +1,9 @@ -name: 'dhis2: verify (app)' - on: push concurrency: group: ${{ github.workflow}}-${{ github.ref }} - cancel-in-progress: true + # Cancel previous runs if not on a release branch + cancel-in-progress: ${{ !contains(github.ref, fromJSON('["master", "main"]')) }} env: GIT_AUTHOR_NAME: '@dhis2-bot'