cicd: don't cancel runs on master by concurrency condition

This commit is contained in:
Andrew Hlynskyi 2023-04-10 01:06:32 +03:00
parent 9ccfd648c9
commit 4a723c985d

View file

@ -9,7 +9,13 @@ on:
- check/*
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
group: >
${{ github.workflow }} @ ${{
github.ref == 'refs/heads/master' && github.ref_name || ''
}}${{
github.ref == 'refs/heads/master' && github.sha
|| github.event.pull_request.head.label || github.head_ref || github.ref
}}
cancel-in-progress: true
jobs: