From fe5b156c9091460353d3f56e0ddcb5bf54a2fbb8 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 | 7 +++++++ install-build-wrapper/action.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/deprecated-c-cpp/action.yml b/deprecated-c-cpp/action.yml index 4f967d6..a1e420f 100644 --- a/deprecated-c-cpp/action.yml +++ b/deprecated-c-cpp/action.yml @@ -30,6 +30,13 @@ runs: shell: bash run: brew install coreutils + - name: Set SONAR_HOST_URL to 'https://sonarcloud.io' + if: env.SONAR_HOST_URL == '' + shell: bash + 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..65a457b 100644 --- a/install-build-wrapper/action.yml +++ b/install-build-wrapper/action.yml @@ -19,6 +19,13 @@ runs: shell: bash run: brew install coreutils + - name: Set SONAR_HOST_URL to 'https://sonarcloud.io' + if: env.SONAR_HOST_URL == '' + shell: bash + 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