From 241e63064a62ad48372842c51de26ea554f8bab9 Mon Sep 17 00:00:00 2001 From: Saagar Jha Date: Wed, 27 Nov 2024 19:55:15 -0800 Subject: [PATCH] Fix generate_notes.sh to use explicit tags This works around actions/checkout bug where HEAD was not populated. --- Release/generate_notes.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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>)"