Skip to content

Commit

Permalink
all messages since last non prerelease on release.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbusillo committed Jun 12, 2024
1 parent 582cc5d commit 77c6449
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/briefcase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
id: get_commit_messages
run: |
git fetch --tags
if [ "${{ github.ref }}" = "refs/heads/prerelease" ]; then
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)
else
LAST_TAG=$(git describe --tags --abbrev=0 --exclude '*-prerelease' 2>/dev/null || git rev-list --max-parents=0 HEAD)
fi
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)
MESSAGES=$(git log --no-merges --pretty=format:"- [%h](https://github.com/${{ github.repository }}/commit/%H) %s" "$LAST_TAG"..HEAD | grep -v "Bump version")
echo "messages<<EOF" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 77c6449

Please sign in to comment.