Skip to content

Commit

Permalink
ci: cancel previous runs if not on release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Jun 11, 2024
1 parent 11963ff commit c8811aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit c8811aa

Please sign in to comment.