Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

ci(sonar): don't cancel superseded runs on main, so coverage is published (#3881)

Dylan M. Taylorc4fba30b9c62
diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml
index ecee45a6d..e78fe1ea3 100644
--- a/.github/workflows/sonarcloud.yml
+++ b/.github/workflows/sonarcloud.yml
@@ -11,7 +11,8 @@ permissions:
concurrency:
group: sonarcloud-${{ github.ref }}
- cancel-in-progress: true
+ # A push to main is the run that publishes coverage; superseded runs there would never finish.
+ cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
sonarcloud: