Skip to content

Commit

Permalink
Can now create a draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
mokshadharma committed Nov 21, 2023
1 parent 6e4a29d commit c308dad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

json_file=tmp/create-release.json
timestamp=$(date +%s)
draft="false"
prerelease="false"
generate_release_notes="true"

Expand All @@ -13,9 +14,10 @@ jq -n \
--arg commitish "${base_branch}" \
--arg name "Release 1 ($timestamp)" \
--arg prerelease ${prerelease} \
--arg draft ${draft} \
--arg generate_release_notes ${generate_release_notes} \
--arg body "The first and possibly last ever release." \
'{tag_name : $tag, target_commitish: $commitish, name: $name, generate_release_notes: $generate_release_notes | test("true"), body: $body, prerelease: $prerelease | test("true")}' > ${json_file}
'{tag_name : $tag, target_commitish: $commitish, name: $name, generate_release_notes: $generate_release_notes | test("true"), body: $body, draft: $draft | test("true"), prerelease: $prerelease | test("true")}' > ${json_file}

#cat $json_file | jq -r >&2

Expand Down

0 comments on commit c308dad

Please sign in to comment.