Merge pull request #2191 from tree-sitter/cicd-tweaks-2

cicd: don't cancel runs on master by concurrency condition
This commit is contained in:
Andrew Hlynskyi 2023-04-10 04:29:07 +03:00 committed by GitHub
commit 15504fd53c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: