Skip to content

Commit b949be6

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into bugfix_v0.2.1
2 parents 0249c03 + e808451 commit b949be6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,14 @@ jobs:
193193
run: |
194194
version=$(cat version.txt | xargs)
195195
title="pywatershed $version"
196-
notes=$(cat "changelog/CHANGELOG_$version.md" | grep -v "### Version $version")
196+
197+
# don't fail if the changelog is empty
198+
if [[ -s "changelog/CHANGELOG_$version.md" ]]; then
199+
notes=$(cat "changelog/CHANGELOG_$version.md" | grep -v "### Version $version")
200+
else
201+
notes="No changes found, are recent commits conventional?"
202+
fi
203+
197204
gh release create "$version" \
198205
--target main \
199206
--title "$title" \

0 commit comments

Comments
 (0)