Skip to content

Commit 95d3b97

Browse files
committed
Fix publish CI
1 parent 5b5c03e commit 95d3b97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/sdk_publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ jobs:
2222
id: mint-token
2323
run: |
2424
# retrieve the ambient OIDC token
25-
resp=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
25+
resp=$(curl -sS --fail -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
2626
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=pypi")
2727
oidc_token=$(jq -r '.value' <<< "${resp}")
2828
2929
# exchange the OIDC token for an API token
30-
resp=$(curl -X POST https://pypi.org/_/oidc/mint-token -d "{\"token\": \"${oidc_token}\"}")
30+
resp=$(curl -sS --fail -X POST https://pypi.org/_/oidc/mint-token -d "{\"token\": \"${oidc_token}\"}")
3131
api_token=$(jq -r '.token' <<< "${resp}")
3232
3333
# see the next step in the workflow for an example of using this step output

0 commit comments

Comments
 (0)