From 7458bec9fc93a2ab07134b3ae286b3157eb5c97e Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 14 Nov 2024 22:12:56 -0500 Subject: [PATCH] fix: ai fixes --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 9b9968d..b559a0d 100644 --- a/action.yml +++ b/action.yml @@ -180,13 +180,14 @@ runs: shell: bash run: | CC_BRANCH="${{ inputs.override_branch }}" + PR_HEAD_LABEL="${{ github.event.pull_request.head.label }}" 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="$PR_HEAD_LABEL" + CC_BRANCH="$PR_HEAD_LABEL" echo "TOKENLESS=$TOKENLESS" >> $GITHUB_ENV echo "CC_BRANCH=$CC_BRANCH" >> $GITHUB_ENV fi