Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: danCrespo <117232080+danCrespo@users.noreply.github.com>
  • Loading branch information
danCrespo committed Sep 14, 2023
1 parent 41b4500 commit 78b678b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-package
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,13 @@ build_binary() {

create_relase() {

local release_request
declare -g release_id
data=(
"{\"tag_name\":\"${TAG}\",\"name\":\"${programName}@${TAG}\",\"body\":\"${programName} release for tag ${TAG}\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":true,\"make_latest\":\"true\"}"
)

release_id="$(
release_request="$(
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
Expand All @@ -71,7 +72,7 @@ create_relase() {
-d "${data[0]}" 2>/dev/null >&1
)"

release_id="$(echo "${release_id}" | grep '"id"' --max-count=1 | cut -d: -f2 | tr -d , | tr -d ' ')"
release_id="$(echo "${release_request}" | grep '"id"' --max-count=1 | cut -d: -f2 | tr -d , | tr -d ' ')"
}

get_last_release() {
Expand Down

0 comments on commit 78b678b

Please sign in to comment.