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