Skip to content

Commit

Permalink
fixng typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Github CLI committed Jan 29, 2023
1 parent 1f018c9 commit 7f0f61d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions github-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ create_release(){
"prerelease": true
}' | sed -r 's/[\]{2}/\\/g')
(curl -s -X POST -w '%{stderr}%{http_code}\n%{stdout}\n' \
-H "Authorization: token $${REPO_TOKEN}" \
-H "Authorization: token ${REPO_TOKEN}" \
"https://api.github.com/repos/${USERNAME}/${REPOSITORY}/releases?access_token=$REPO_TOKEN" \
--data "$PAYLOAD" |\
tee -a /dev/stderr | jq -r '.id') 2> /tmp/stderr 1> /tmp/stdout
Expand All @@ -36,7 +36,7 @@ create_release(){
upload_file(){
local OUT=$(curl --data-binary "@$SOURCE_FILE" -w "\n%{http_code}\n" \
-s -X POST -H 'Content-Type: application/octet-stream' \
-H "Authorization: token $${REPO_TOKEN}" \
-H "Authorization: token ${REPO_TOKEN}" \
"https://uploads.github.com/repos/${USERNAME}/${REPOSITORY}/releases/$RELEASE_ID/assets?name=$TARGET_FILE"
)

Expand Down

0 comments on commit 7f0f61d

Please sign in to comment.