X Tutup
Skip to content

Commit 0432dab

Browse files
committed
fix(ci): strip quotes from minted token
1 parent 7d662e4 commit 0432dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: mint-token
2222
run: |
2323
oidc_token=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=testpypi" | jq '.value')
24-
api_token=$(curl -X POST https://test.pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}" | jq '.token')
24+
api_token=$(curl -X POST https://test.pypi.org/_/oidc/github/mint-token -d "{\"token\": \"${oidc_token}\"}" | jq '.token' | tr -d '"')
2525
echo "::add-mask::${api_token}"
2626
echo "api-token=${api_token}" >> "${GITHUB_OUTPUT}"
2727
- name: Python Semantic Release

0 commit comments

Comments
 (0)
X Tutup