File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -168,12 +168,13 @@ runs:
168
168
- name : Set fork
169
169
shell : bash
170
170
run : |
171
- if [ -n "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" ] && [ "${GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME}" != "$GITHUB_REPOSITORY" ];
171
+ CC_FORK="false"
172
+ if [ -n "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" ] && [ "$GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME" != "$GITHUB_REPOSITORY" ];
172
173
then
173
174
echo -e "\033[0;32m==>\033[0m Fork detected"
174
175
CC_FORK="true"
175
- echo "CC_FORK=$CC_FORK" >> "$GITHUB_ENV"
176
176
fi
177
+ echo "CC_FORK=$CC_FORK" >> "$GITHUB_ENV"
177
178
env :
178
179
GITHUB_EVENT_PULL_REQUEST_HEAD_LABEL : ${{ github.event.pull_request.head.label }}
179
180
GITHUB_EVENT_PULL_REQUEST_HEAD_REPO_FULL_NAME : ${{ github.event.pull_request.head.repo.full_name }}
@@ -183,10 +184,10 @@ runs:
183
184
- name : Get and set token
184
185
shell : bash
185
186
run : |
186
- if [ "${{ inputs.use_oidc }}" == 'true' && "$CC_FORK" != 'true' ];
187
+ if [ "${{ inputs.use_oidc }}" == 'true' ] && [ "$CC_FORK" != 'true' ];
187
188
then
188
189
# {"count":1984,"value":"***"}
189
- echo -e "\033[0;32m==>\033[0m Requesting OIDC token from ${ACTION_ID_TOKEN_REQUEST_URL} "
190
+ echo -e "\033[0;32m==>\033[0m Requesting OIDC token from '$ACTIONS_ID_TOKEN_REQUEST_URL' "
190
191
CC_TOKEN=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://codecov.io" | cut -d\" -f6)
191
192
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
192
193
elif [ -n "${{ env.CODECOV_TOKEN }}" ];
You can’t perform that action at this time.
0 commit comments