Skip to content

Commit

Permalink
chore: append GIT_LOG
Browse files Browse the repository at this point in the history
  • Loading branch information
kuloud committed Aug 25, 2024
1 parent 2a889eb commit ae87148
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ jobs:
- name: Get Commit Logs
id: git_log
run: |
export GIT_LOG=$(git log --pretty=format:'- %s' $(git describe --tags --abbrev=0)..HEAD)
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
if [ -z "$TAG" ]; then
GIT_LOG=$(git log --pretty=format:'- %s')
else
GIT_LOG=$(git log --pretty=format:'- %s' $TAG..HEAD)
fi
echo "git_log=$GIT_LOG" >> $GITHUB_ENV
- name: Create Release
Expand Down

0 comments on commit ae87148

Please sign in to comment.