From 4a723c985d520d9bb7366ba13601852c5a4fe4d9 Mon Sep 17 00:00:00 2001 From: Andrew Hlynskyi Date: Mon, 10 Apr 2023 01:06:32 +0300 Subject: [PATCH] cicd: don't cancel runs on master by concurrency condition --- .github/workflows/CICD.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index e675781f..666d3801 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -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: