Skip to content

Commit

Permalink
update getuploadurl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wangwei1237 committed Aug 30, 2022
1 parent 22b2fcb commit e139dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getuploadurl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ upload_url=$(curl -H "Accept: application/vnd.github.v3+json" "${get_release_url
create_release_url="${URL_PREFIX}"
if [ "$upload_url" = "" ]
then
upload_url=$(curl -X POST -H "Accept: application/vnd.github.v3+json" "${create_release_url}?access_token=${token}" -d "{\"tag_name\":\"${version}\", \"name\":\"Build for ${version}\"}" | grep 'upload_url' | cut -d'"' -f4)
upload_url=$(curl -X POST -H "Accept: application/vnd.github.v3+json" "${create_release_url}" -H "Authorization: token ${token}" -d "{\"tag_name\":\"${version}\", \"name\":\"Build for ${version}\"}" | grep 'upload_url' | cut -d'"' -f4)
fi

echo "::set-output name=upload-url::$upload_url"

0 comments on commit e139dee

Please sign in to comment.