Skip to content

Commit bd4af09

Browse files
Andreas Mandelamandel
authored andcommitted
Skip SonarQube if SONAR_TOKEN is not available
1 parent 0c2a107 commit bd4af09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,10 @@ jobs:
227227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
228228
run: |
229229
set -eux
230+
if [ -z "${SONAR_TOKEN:-}" ]; then
231+
echo "Will not execute SonarQube - SONAR_TOKEN not set."
232+
exit 0
233+
fi
230234
# Hack - point sonarqube to the real sources not the copy of it
231235
# See also https://community.sonarsource.com/t/scanning-platformio-c-embeded-projects/35141/2
232236
sed -i 's|OpenBikeSensorFirmware/bin|OpenBikeSensorFirmware|g' \

0 commit comments

Comments
 (0)