Skip to content

Commit

Permalink
fix(repo): release script to versions sort by semver
Browse files Browse the repository at this point in the history
  • Loading branch information
jneidel committed May 8, 2024
1 parent 74b1d8a commit c16417a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion repo/changelog/generate-changelog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ command -v git >/dev/null || { echo "git is not installed" 1>&2; exit 127; }
command -v node >/dev/null || { echo "node is not installed" 1>&2; exit 127; }
command -v awk >/dev/null || { echo "awk is not installed" 1>&2; exit 127; }

git log --oneline --no-decorate $(git tag | tail -n1)..HEAD |
git log --oneline --no-decorate $(git tag | sort -V | tail -n1)..HEAD |
awk {'first=$1; $1=""; print ""$0"\\n"first""'} | sed 's/^ //' |
$DIR/parse-commits.js
2 changes: 1 addition & 1 deletion repo/release
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ command -v $BROWSER >/dev/null || { echo "$BROWSER was not found" 1>&2; exit 127

git push origin master

VERSION=$(git tag | tail -n1 | awk -F. '{ print $1"."$2+1".0" }')
VERSION=$(git tag | sort -V | tail -n1 | awk -F. '{ print $1"."$2+1".0" }')

URL="https://github.com/jneidel/dotfiles/releases/new?tag=$VERSION&title=Recent%20changes%20to%20my%20dotfiles%20($VERSION)&body="
$BROWSER "$URL$($DIR/changelog/generate-changelog)" >/dev/null 2>&1 &

0 comments on commit c16417a

Please sign in to comment.