mirror of
https://github.com/taiki-e/install-action.git
synced 2026-05-07 21:40:30 +00:00
Update tools/publish.sh
This commit is contained in:
@@ -37,6 +37,10 @@ echo "============== CHANGELOG =============="
|
|||||||
parse-changelog CHANGELOG.md "${version}"
|
parse-changelog CHANGELOG.md "${version}"
|
||||||
echo "======================================="
|
echo "======================================="
|
||||||
|
|
||||||
|
if ! grep <CHANGELOG.md -E "^\\[${version//./\\.}\\]: " >/dev/null; then
|
||||||
|
bail "not found link to [${version}] in CHANGELOG.md"
|
||||||
|
fi
|
||||||
|
|
||||||
# Make sure the same release has not been created in the past.
|
# Make sure the same release has not been created in the past.
|
||||||
if gh release view "${tag}" &>/dev/null; then
|
if gh release view "${tag}" &>/dev/null; then
|
||||||
bail "tag '${tag}' has already been created and pushed"
|
bail "tag '${tag}' has already been created and pushed"
|
||||||
|
|||||||
Reference in New Issue
Block a user