From e2fbcf3c11569ababe70e9062f1302cb39f1fe23 Mon Sep 17 00:00:00 2001 From: Antonio Aversa Date: Thu, 12 Dec 2024 11:23:13 +0100 Subject: [PATCH] Code review: Assume unset SONAR_HOST_URL to be https://sonarcloud.io --- deprecated-c-cpp/action.yml | 6 ++++++ install-build-wrapper/action.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/deprecated-c-cpp/action.yml b/deprecated-c-cpp/action.yml index 4f967d6..9171118 100644 --- a/deprecated-c-cpp/action.yml +++ b/deprecated-c-cpp/action.yml @@ -30,6 +30,12 @@ runs: shell: bash run: brew install coreutils + - name: Set SONAR_HOST_URL to 'https://sonarcloud.io' + if: env.SONAR_HOST_URL == '' + run: | + echo "Setting SONAR_HOST_URL to 'https://sonarcloud.io'" + echo "SONAR_HOST_URL=https://sonarcloud.io" >> $GITHUB_ENV + - name: Verify and create installation path shell: bash env: diff --git a/install-build-wrapper/action.yml b/install-build-wrapper/action.yml index 568feb9..de781c9 100644 --- a/install-build-wrapper/action.yml +++ b/install-build-wrapper/action.yml @@ -19,6 +19,12 @@ runs: shell: bash run: brew install coreutils + - name: Set SONAR_HOST_URL to 'https://sonarcloud.io' + if: env.SONAR_HOST_URL == '' + run: | + echo "Setting SONAR_HOST_URL to 'https://sonarcloud.io'" + echo "SONAR_HOST_URL=https://sonarcloud.io" >> $GITHUB_ENV + - name: Configure paths id: configure_paths shell: bash