Skip to content

Commit

Permalink
Fix generate_notes.sh to use explicit tags
Browse files Browse the repository at this point in the history
This works around actions/checkout bug where HEAD was not populated.
  • Loading branch information
saagarjha committed Nov 28, 2024
1 parent 3494b80 commit 241e630
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Release/generate_notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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>)"

0 comments on commit 241e630

Please sign in to comment.