]> OCCT Git - occt.git/commitdiff
Testing - IR integration enable concurrency #536
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Thu, 15 May 2025 18:34:23 +0000 (19:34 +0100)
committerGitHub <noreply@github.com>
Thu, 15 May 2025 18:34:23 +0000 (19:34 +0100)
Fix concurrency cancel-in-progress condition in CI workflow for IR branch

.github/workflows/build-and-test-multiplatform.yml

index 51acbd0601a52efd4fa60fbc7cc5b8a7a6a83d78..17a9474c4668860ba7d883884f790d1cde7e37cd 100644 (file)
@@ -14,8 +14,10 @@ on:
       - 'master'
 
 concurrency:
-  group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
-  cancel-in-progress: ${{ !(github.ref == 'refs/heads/IR' && github.repository == 'Open-Cascade-SAS/OCCT') }}
+  group: ${{ github.event_name == 'pull_request' 
+    && format('{0}-{1}', github.workflow, github.event.pull_request.number)
+    || format('{0}-{1}', github.workflow, github.run_id) }}
+  cancel-in-progress: ${{ github.event_name == 'pull_request' && !(github.head_ref == 'IR' && github.repository == 'Open-Cascade-SAS/OCCT') && true || false }}
 
 jobs:
   clang-format: