From 0ce6c8b9420cd6d63162f8da9aa5c8af1065d441 Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Fri, 13 Aug 2021 23:04:11 +0200 Subject: [PATCH] (#255) Only run sonar step if SONAR_TOKEN is set --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eef4ab0..b749817 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,6 +47,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + if: ${{ env.SONAR_TOKEN != null }} test: needs: