Skip to content

Commit 363001f

Browse files
committed
release notes fallback
Signed-off-by: Balaji J <j.balaji2468@gmail.com>
1 parent c0ecee6 commit 363001f

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ jobs:
120120
> /tmp/release_notes.md
121121
122122
if [ ! -s /tmp/release_notes.md ]; then
123-
echo "ERROR: No release notes found for version $VERSION in CHANGELOG.md"
124-
echo "Available versions:"
125-
grep '^## \[' CHANGELOG.md
126-
exit 1
123+
echo "WARNING: No release notes found for version $VERSION in CHANGELOG.md"
124+
echo "Using fallback release notes."
125+
echo "No detailed release notes provided in CHANGELOG.md for this version." > /tmp/release_notes.md
127126
fi
128127
129128
echo "--- Release notes preview ---"
@@ -182,6 +181,10 @@ jobs:
182181
| sed -e '/./,$!d' -e ':a;/^\n*$/{$d;N;ba}' \
183182
> /tmp/release_notes.md
184183
184+
if [ ! -s /tmp/release_notes.md ]; then
185+
echo "No detailed release notes provided in CHANGELOG.md for this version." > /tmp/release_notes.md
186+
fi
187+
185188
# upload MSI to the existing draft release
186189
gh release upload "$TAG_NAME" dist/*.msi
187190

0 commit comments

Comments
 (0)