mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-07 19:47:25 +00:00
fix: use the github context
This commit is contained in:
parent
7ff8c66a50
commit
453bbab479
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue