We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0249c03 + e808451 commit b949be6Copy full SHA for b949be6
.github/workflows/release.yaml
@@ -193,7 +193,14 @@ jobs:
193
run: |
194
version=$(cat version.txt | xargs)
195
title="pywatershed $version"
196
- notes=$(cat "changelog/CHANGELOG_$version.md" | grep -v "### Version $version")
+
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
204
gh release create "$version" \
205
--target main \
206
--title "$title" \
0 commit comments