From 597f8cbbb3cf6873e89c9c885e38460f17802d9f Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 31 Mar 2023 17:20:41 +0200 Subject: build: try to fix secret detection in workflow --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce42b9f1..64aa23e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,9 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - echo "is_SONAR_TOKEN_set=${{ env.SONAR_TOKEN != '' }}" >> $GITHUB_OUTPUT + if [ "${SONAR_TOKEN}" != '' ]; then + echo 'is_SONAR_TOKEN_set=true' >> $GITHUB_OUTPUT + fi - name: Checkout code uses: actions/checkout@v3 with: -- cgit v1.2.3-70-g09d2