fix: update CODECOV_TOKEN and fix tokenless (#1688)

* fix: add space

* fix: update CODECOV_TOKEN if set with env
This commit is contained in:
Tom Hu
2024-11-20 15:11:41 -05:00
committed by GitHub
parent 288befbd10
commit 373fd71a64

View File

@@ -173,6 +173,9 @@ runs:
# {"count":1984,"value":"***"} # {"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) 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" echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
elif [ -n "${{ env.CODECOV_TOKEN }}" ];
then
echo "CC_TOKEN=${{ env.CODECOV_TOKEN }}" >> "$GITHUB_ENV"
else else
if [ -n ${{ inputs.token }} ]; if [ -n ${{ inputs.token }} ];
then then