diff --git a/Release/generate_notes.sh b/Release/generate_notes.sh index e5078f4..7574229 100755 --- a/Release/generate_notes.sh +++ b/Release/generate_notes.sh @@ -2,11 +2,7 @@ set -x -# Don't buffer output, as per setbuf(3) -export STDBUF=U - -ALL_TAGS="$(git tag --sort=-version:refname | xargs -n 1 git show-ref)" -HEAD="$(git show-ref HEAD)" - +# I'd like to use HEAD, but alas: https://github.com/actions/checkout/issues/969 LAST_TAG="$(git tag --sort=-version:refname | head -2 | tail -n 1)" -git log "$LAST_TAG"..HEAD --pretty=format:"[%as] %h: %s (%aN <%aE>)" +CURRENT_TAG="$(git tag --sort=-version:refname | head -1)" +git log "$LAST_TAG"..main --pretty=format:"[%as] %h: %s (%aN <%aE>)"