File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ runs:
173
173
# {"count":1984,"value":"***"}
174
174
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)
175
175
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
176
+ elif [ -n "${{ env.CODECOV_TOKEN }}" ];
177
+ then
178
+ echo "CC_TOKEN=${{ env.CODECOV_TOKEN }}" >> "$GITHUB_ENV"
176
179
else
177
180
if [ -n ${{ inputs.token }} ];
178
181
then
@@ -184,7 +187,7 @@ runs:
184
187
- name : Override branch for forks
185
188
shell : bash
186
189
run : |
187
- if [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ -n "$GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME"] && [ "${GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME}" != "$GITHUB_REPOSITORY" ];
190
+ if [ -z "$CC_BRANCH" ] && [ -z "$CC_TOKEN" ] && [ -n "$GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME" ] && [ "${GITHUB_EVENT_PULL_REQUEST_REPO_FULL_NAME}" != "$GITHUB_REPOSITORY" ];
188
191
then
189
192
echo -e "\033[0;32m==>\033[0m Fork detected, tokenless uploading used"
190
193
TOKENLESS="$GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL"
You can’t perform that action at this time.
0 commit comments