Skip to content

Commit

Permalink
Automate releases with gh #82
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Nov 21, 2021
1 parent 6dc7485 commit 594812a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makesurefile
Original file line number Diff line number Diff line change
Expand Up @@ -328,4 +328,15 @@ in_begin && $1 ~ /^split/ { next }

"./just" --version


@goal gh_release # @private
@doc 'publish Github release (draft)'
fail () {
echo >&2 "$@"
exit 1
}
milestoneId=$(gh api -X GET "repos/xonixx/makesure/milestones" --jq '.[] | select(.title=="'$NEXT_VERSION'").number')
if [[ -z $milestoneId ]]
then
fail "Unable to determine milestoneId by release version"
fi
echo "Milestone ID : $milestoneId"

0 comments on commit 594812a

Please sign in to comment.