Compare commits

..

No commits in common. "896cf6fdb08e721b92d300dd7bb3d77aa6d3290c" and "b22bb49cec87b863a6df5b872a8fe8c5e34e9636" have entirely different histories.

View file

@ -46,11 +46,15 @@ jobs:
# Get the current tag name (e.g., v1.0.0)
TAG_NAME=${GITHUB_REF#refs/tags/}
# Get the commit associated with the tag
TAG_COMMIT=$(git rev-list -n 1 $TAG_NAME)
# Find the previous tag (if it exists)
PREVIOUS_TAG=$(git describe --tags --abbrev=0 --match "v*" $(git rev-list --tags --skip=1 --max-count=1) 2>/dev/null || echo "")
# Retrieve all commit messages leading up to this tag
COMMITS=$(git log --pretty=format:'- %s' $TAG_COMMIT --no-merges)
# Get commit messages between the previous tag and the current tag
if [ -z "$PREVIOUS_TAG" ]; then
COMMITS=$(git log --pretty=format:'- %s' $TAG_NAME --no-merges)
else
COMMITS=$(git log $PREVIOUS_TAG..$TAG_NAME --pretty=format:'- %s' --no-merges)
fi
# Store commit messages in environment variable
echo "commits<<EOF" >> $GITHUB_ENV