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