Skip to content

Commit 7f0f61d

Browse files
author
Github CLI
committed
fixng typo
1 parent 1f018c9 commit 7f0f61d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github-cli.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ create_release(){
1919
"prerelease": true
2020
}' | sed -r 's/[\]{2}/\\/g')
2121
(curl -s -X POST -w '%{stderr}%{http_code}\n%{stdout}\n' \
22-
-H "Authorization: token $${REPO_TOKEN}" \
22+
-H "Authorization: token ${REPO_TOKEN}" \
2323
"https://api.github.com/repos/${USERNAME}/${REPOSITORY}/releases?access_token=$REPO_TOKEN" \
2424
--data "$PAYLOAD" |\
2525
tee -a /dev/stderr | jq -r '.id') 2> /tmp/stderr 1> /tmp/stdout
@@ -36,7 +36,7 @@ create_release(){
3636
upload_file(){
3737
local OUT=$(curl --data-binary "@$SOURCE_FILE" -w "\n%{http_code}\n" \
3838
-s -X POST -H 'Content-Type: application/octet-stream' \
39-
-H "Authorization: token $${REPO_TOKEN}" \
39+
-H "Authorization: token ${REPO_TOKEN}" \
4040
"https://uploads.github.com/repos/${USERNAME}/${REPOSITORY}/releases/$RELEASE_ID/assets?name=$TARGET_FILE"
4141
)
4242

0 commit comments

Comments
 (0)