mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-07 19:47:25 +00:00
fix: update CODECOV_TOKEN if set with env
This commit is contained in:
parent
eea0d176b1
commit
637f5001b4
1 changed files with 3 additions and 0 deletions
|
|
@ -173,6 +173,9 @@ runs:
|
|||
# {"count":1984,"value":"***"}
|
||||
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)
|
||||
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
||||
elif [ -n "${{ env.CODECOV_TOKEN }}" ];
|
||||
then
|
||||
echo "CC_TOKEN=${{ env.CODECOV_TOKEN }}" >> "$GITHUB_ENV"
|
||||
else
|
||||
if [ -n ${{ inputs.token }} ];
|
||||
then
|
||||
|
|
|
|||
Loading…
Reference in a new issue