Skip to content

Commit

Permalink
chore: use header for auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneBour committed Oct 7, 2021
1 parent 6da49c7 commit 13a19de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if [ "${CREATE_RELEASE}" = "true" ] || [ "${CREATE_RELEASE}" = true ]; then
--argjson p "$PRE" \
'{tag_name: $tn, target_commitish: $tc, name: $n, body: $b, draft: $d, prerelease: $p}' )
echo ${JSON_STRING}
OUTPUT=$(curl -s --data "${JSON_STRING}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases?access_token=${GITHUB_TOKEN}")
OUTPUT=$(curl -s --data "${JSON_STRING}" -H "Authorization: token ${GITHUB_TOKEN}" "https://api.github.com/repos/${GITHUB_REPOSITORY}/releases")
echo ${OUTPUT} | jq
fi;

Expand Down

0 comments on commit 13a19de

Please sign in to comment.