From 28d08ed66d0ff88a76a16f5e2ce9cbe3dbadb4ca Mon Sep 17 00:00:00 2001 From: Vittorio Parrella Date: Thu, 21 Nov 2024 22:54:24 +0100 Subject: [PATCH] fix: empty commits messages --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4afacb..4e4a25d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,12 +47,13 @@ jobs: id: changelog run: | set -x - PREV_TAG=$(git tag | { grep -E "^v" || true } | 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" || true } >> 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" || true } >> changelog.txt + git log ${PREV_TAG}..HEAD --pretty=format:"%s" | uniq | { grep -E "^bug|^fix" || true; } >> changelog.txt + echo "" >> changelog.txt - name: Upload Changelog uses: actions/upload-artifact@v4