Compare commits

..

2 commits

Author SHA1 Message Date
5aaa64bc14 Just testing
All checks were successful
Compile LaTeX and Release PDF / build_latex (push) Successful in 53s
2025-03-07 09:15:42 -03:00
028348acd3 Update commit messages 2025-03-07 09:15:31 -03:00

View file

@ -40,17 +40,19 @@ jobs:
- name: Get commit messages for the release
id: get_commit_messages
run: |
LAST_TAG=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1) 2>/dev/null || echo "")
if [ -z "$LAST_TAG" ]; then
COMMITS=$(git log --pretty=format:'- %s' | head -n 20)
else
COMMITS=$(git log $LAST_TAG..HEAD --pretty=format:'- %s' | head -n 20)
fi
echo "commits<<EOF" >> $GITHUB_ENV
echo "$COMMITS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
TAG_NAME=${GITHUB_REF#refs/tags/}
TAG_COMMIT=$(git rev-list -n 1 $TAG_NAME)
PREVIOUS_TAG=$(git describe --tags --abbrev=0 --match "v*" $TAG_COMMIT^ 2>/dev/null || echo "")
if [ -z "$PREVIOUS_TAG" ]; then
COMMITS=$(git log --pretty=format:'- %s' $TAG_COMMIT)
else
COMMITS=$(git log $PREVIOUS_TAG..$TAG_COMMIT --pretty=format:'- %s')
fi
echo "commits<<EOF" >> $GITHUB_ENV
echo "$COMMITS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
# Step 5: Upload the compiled PDF as a release asset
# Step 5: Upload the compiled PDF as a release asset.
- name: Upload PDF to Release
uses: actions/upload-artifact@v3
with: