Skip to content

Commit

Permalink
Updating release script github access token usage
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffeyDev committed Mar 6, 2021
1 parent 5c2071c commit df785d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ fi
#
echo "Generating v${NEXT_RELEASE}"

RELEASE=$(curl --silent -H "Content-Type: application/json" -X POST --data "$(GENERATE_POST_BODY)" "https://api.github.com/repos/${REPOSITORY}/releases?access_token=${AUTOMATIC_RELEASE_GITHUB_TOKEN}")
RELEASE=$(curl --silent -H "Content-Type: application/json" -H "Authorization: token $AUTOMATIC_RELEASE_GITHUB_TOKEN" -X POST --data "$(GENERATE_POST_BODY)" "https://api.github.com/repos/${REPOSITORY}/releases")


EDIT_URL="$(node -p -e 'JSON.parse(process.argv[1]).html_url.replace('/\\/tag\\//', '/edit/')' "${RELEASE}")"
Expand Down

0 comments on commit df785d4

Please sign in to comment.