mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 22:47:25 +00:00
fix: ai fixes
This commit is contained in:
parent
23d74e4027
commit
7458bec9fc
1 changed files with 3 additions and 2 deletions
|
|
@ -180,13 +180,14 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
CC_BRANCH="${{ inputs.override_branch }}"
|
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 }}")
|
is_Fork=$("${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}")
|
||||||
if [ -z "$CC_BRANCH" ] && [ -z "$CODECOV_TOKEN" ] && [ "$is_fork" == "true" ];
|
if [ -z "$CC_BRANCH" ] && [ -z "$CODECOV_TOKEN" ] && [ "$is_fork" == "true" ];
|
||||||
then
|
then
|
||||||
echo -e "\033[0;32m==>\033[0m Fork detected, tokenless uploading used"
|
echo -e "\033[0;32m==>\033[0m Fork detected, tokenless uploading used"
|
||||||
TOKENLESS="${{ github.event.pull_request.head.label }}"
|
TOKENLESS="$PR_HEAD_LABEL"
|
||||||
CC_BRANCH="${{ github.event.pull_request.head.label }}"
|
CC_BRANCH="$PR_HEAD_LABEL"
|
||||||
echo "TOKENLESS=$TOKENLESS" >> $GITHUB_ENV
|
echo "TOKENLESS=$TOKENLESS" >> $GITHUB_ENV
|
||||||
echo "CC_BRANCH=$CC_BRANCH" >> $GITHUB_ENV
|
echo "CC_BRANCH=$CC_BRANCH" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue