From 228052ecb880441e9e986fe5c40546763d187a4a Mon Sep 17 00:00:00 2001 From: Vittorio Parrella Date: Thu, 21 Nov 2024 22:47:45 +0100 Subject: [PATCH] fix: empty commits messages --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e6719c..e4afacb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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