From d21cd6357effd5b293cd2bc0c7047012cee4bc6b Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 25 Nov 2024 08:55:31 +0100 Subject: [PATCH] Accept empty release notes --- .github/workflows/readme-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/readme-release.yml b/.github/workflows/readme-release.yml index aee8b99..e42e09d 100644 --- a/.github/workflows/readme-release.yml +++ b/.github/workflows/readme-release.yml @@ -153,7 +153,9 @@ jobs: RELEASE_NOTES='First version' else printf 'Generating release notes for commits between %s and %s\n' "$VERSIONTAG_PREVIOUS" "$VERSIONTAG_THIS" - RELEASE_NOTES="$(git log --format='- %s' --no-merges --reverse "refs/tags/$VERSIONTAG_PREVIOUS...refs/tags/$VERSIONTAG_THIS" -- ./install-php-extensions ./Dockerfile | grep -vE '^- \[minor\]')" + if ! RELEASE_NOTES="$(git log --format='- %s' --no-merges --reverse "refs/tags/$VERSIONTAG_PREVIOUS...refs/tags/$VERSIONTAG_THIS" -- ./install-php-extensions ./Dockerfile | grep -vE '^- \[minor\]')"; then + RELEASE_NOTES= + fi fi printf 'Release notes:\n%s\n' "$RELEASE_NOTES" printf 'RELEASE_NAME=v%s\n' "$VERSIONTAG_THIS" >> "$GITHUB_ENV"