Always cancel already running CI runs on forks (#8542)
authorGereon Kremer <gkremer@cs.stanford.edu>
Sat, 2 Apr 2022 18:08:36 +0000 (20:08 +0200)
committerGitHub <noreply@github.com>
Sat, 2 Apr 2022 18:08:36 +0000 (18:08 +0000)
One effect of our changed concurrency policy is that we never cancel runs on forks. This PR changes this, always allowing the concurrency mechanism to cancel on repositories that are not the main repository.

.github/workflows/ci.yml

index 9ef262784ef6f7fff64c37e64d49e9ec736b0058..91832be57b12ae75f44a27aa2bd9e6fdb20301e7 100644 (file)
@@ -69,7 +69,7 @@ jobs:
     # cancel already running jobs for the same branch/pr/tag
     concurrency:
       group: build-${{ github.ref }}-${{ matrix.name }}-${{ github.ref != 'refs/heads/main' || github.run_id }}
-      cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
+      cancel-in-progress: ${{ github.repository != 'cvc5/cvc5' || startsWith(github.ref, 'refs/pull/') }}
 
     steps: