Compare commits

...

2 commits

Author SHA1 Message Date
896cf6fdb0 Add another commit
All checks were successful
Compile LaTeX and Release PDF / build_latex (push) Successful in 53s
2025-03-07 09:32:56 -03:00
22cca0d0fd Update commit messages 2025-03-07 09:32:42 -03:00

View file

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