Don't include RELEASE_NOTES for pre-releases [skip ci]
This commit is contained in:
parent
9a2c2028c7
commit
3d1e3ed3ba
3
.github/workflows/build-and-test.yml
vendored
3
.github/workflows/build-and-test.yml
vendored
@ -69,10 +69,11 @@ jobs:
|
|||||||
assert ref.startswith(prefix)
|
assert ref.startswith(prefix)
|
||||||
parsed = semver.parse_version_info(ref[len(prefix):])
|
parsed = semver.parse_version_info(ref[len(prefix):])
|
||||||
print("::set-output name=is-prerelease::{}".format("true" if parsed.prerelease else "false"))
|
print("::set-output name=is-prerelease::{}".format("true" if parsed.prerelease else "false"))
|
||||||
|
print("::set-output name=release-notes-file::{}".format("" if parsed.prerelease else "RELEASE_NOTES.md"))
|
||||||
EOF
|
EOF
|
||||||
- uses: softprops/action-gh-release@v1
|
- uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
body_path: RELEASE_NOTES.md
|
body_path: ${{ steps.check-version.outputs.release-notes-file }}
|
||||||
prerelease: ${{ steps.check-version.outputs.is-prerelease }}
|
prerelease: ${{ steps.check-version.outputs.is-prerelease }}
|
||||||
name: ${{ format('Coqui STT {0}', steps.check-version.outputs.version) }}
|
name: ${{ format('Coqui STT {0}', steps.check-version.outputs.version) }}
|
||||||
# Linux jobs
|
# Linux jobs
|
||||||
|
Loading…
Reference in New Issue
Block a user