From 453bbab47995460b3d7c6b3228c6757ab641f180 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 14 Nov 2024 22:06:40 -0500 Subject: [PATCH] fix: use the github context --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d7674a7..b54f7c7 100644 --- a/action.yml +++ b/action.yml @@ -185,8 +185,8 @@ runs: if [ -z $CC_BRANCH ] && [ -z $CODECOV_TOKEN ] && [ "$is_fork" == "true" ]; then echo -e "\033[0;32m==>\033[0m Fork detected, tokenless uploading used" - TOKENLESS=${{ context.payload.pull_request.head.label }}; - CC_BRANCH=${{ context.payload.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