From 23d74e40278cb4a3634699a1f91195706da2d468 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 14 Nov 2024 22:10:25 -0500 Subject: [PATCH] fix: lots of quotes --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 4ad3a82..9b9968d 100644 --- a/action.yml +++ b/action.yml @@ -179,14 +179,14 @@ runs: - name: Override branch for forks shell: bash run: | - CC_BRANCH=${{ inputs.override_branch }} + CC_BRANCH="${{ inputs.override_branch }}" - is_Fork=$(${{ github.event.pull_request.head.repo.full_name }} != ${{ github.repository }}) + is_Fork=$("${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}") if [ -z "$CC_BRANCH" ] && [ -z "$CODECOV_TOKEN" ] && [ "$is_fork" == "true" ]; then echo -e "\033[0;32m==>\033[0m Fork detected, tokenless uploading used" - TOKENLESS=${{ github.event.pull_request.head.label }}; - CC_BRANCH=${{ github.event.pull_request.head.label }}; + TOKENLESS="${{ github.event.pull_request.head.label }}" + CC_BRANCH="${{ github.event.pull_request.head.label }}" echo "TOKENLESS=$TOKENLESS" >> $GITHUB_ENV echo "CC_BRANCH=$CC_BRANCH" >> $GITHUB_ENV fi