Skip to content

Commit

Permalink
fix: send header through raw to curl
Browse files Browse the repository at this point in the history
even if shellcheck complains, there exceptions, just rare.
this appears to be one
  • Loading branch information
mikehardy committed Oct 29, 2021
1 parent 159c73a commit bc096f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scripts/process-latest-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ create_github_release() {
body=$(printf "$body" "$release_tag" "$release_name" "$release_body")
response=$(curl --request POST \
--url https://api.github.com/repos/${GITHUB_REPOSITORY}/releases \
"${GITHUB_TOKEN_CURL_HEADER}" \
${GITHUB_TOKEN_CURL_HEADER} \
--header 'Content-Type: application/json' \
--data "$body" \
-s)
Expand Down Expand Up @@ -83,7 +83,7 @@ get_github_release_by_tag() {

response=$(curl --request GET \
--url "https://api.github.com/repos/${github_repository}/releases/tags/${release_tag}" \
"${GITHUB_TOKEN_CURL_HEADER}" \
${GITHUB_TOKEN_CURL_HEADER} \
--header 'Content-Type: application/json' \
-s)

Expand Down

0 comments on commit bc096f2

Please sign in to comment.