File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments