Skip to content

Commit

Permalink
Merge pull request #25 from balena-io/nghiant2710/fix-upload-script
Browse files Browse the repository at this point in the history
Pass github access_token via Authorization header
  • Loading branch information
nghiant2710 authored Jun 1, 2022
2 parents 1139624 + 36e7a17 commit 639d1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ cat > request.json <<-EOF
"prerelease": false
}
EOF
curl --data "@request.json" --header "Content-Type:application/json" \
"https://api.github.com/repos/$ACCOUNT/$REPO/releases?access_token=$ACCESS_TOKEN" \
curl --data "@request.json" -H "Authorization:token $ACCESS_TOKEN" -H "Content-Type:application/json" \
"https://api.github.com/repos/$ACCOUNT/$REPO/releases" \
-o response.json
# Parse response
RELEASE_ID=$(cat response.json | jq '.id')
Expand Down

0 comments on commit 639d1d8

Please sign in to comment.