Compare commits

..

No commits in common. "5aaa64bc14339009c563472cfb53cc57acec5c4a" and "335f59f2d8257fde1bf37f6bde8414f8c334030e" have entirely different histories.

View file

@ -40,19 +40,17 @@ jobs:
- name: Get commit messages for the release
id: get_commit_messages
run: |
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)
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 $PREVIOUS_TAG..$TAG_COMMIT --pretty=format:'- %s')
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
# 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: