Skip to content

Commit

Permalink
fix: empty commits messages
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Nov 21, 2024
1 parent 62b8260 commit 228052e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ jobs:
id: changelog
run: |
set -x
PREV_TAG=$(git tag | grep -E "^v" | sort -ud | tac | head -n1)
PREV_TAG=$(git tag | { grep -E "^v" || true } | sort -ud | tac | head -n1)
echo "== Features ==" > changelog.txt
git log ${PREV_TAG}..HEAD --pretty=format:"%s" | uniq | grep -E "^feat" >> changelog.txt
git log ${PREV_TAG}..HEAD --pretty=format:"%s" | uniq | { grep -E "^feat" || true } >> changelog.txt
echo "" >> changelog.txt
echo "== Fix ==" >> changelog.txt
git log ${PREV_TAG}..HEAD --pretty=format:"%s" | uniq | grep -E "^bug|^fix" >> changelog.txt
git log ${PREV_TAG}..HEAD --pretty=format:"%s" | uniq | { grep -E "^bug|^fix" || true } >> changelog.txt
- name: Upload Changelog
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 228052e

Please sign in to comment.