Skip to content

Commit 2c92f9b

Browse files
fix: PR comments 2
1 parent cacce56 commit 2c92f9b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ jobs:
151151
TAG="v$(node -p 'require("./package.json").version')"
152152
VERSION="${TAG#v}"
153153
has_release_notes() {
154-
[[ "$1" =~ [^[:space:]] ]]
154+
awk '
155+
/^[[:space:]]*$/ { next }
156+
/^[[:space:]]*-{3,}[[:space:]]*$/ { next }
157+
{ found = 1 }
158+
END { exit found ? 0 : 1 }
159+
' <<< "$1"
155160
}
156161
BODY=$(awk -v ver="$VERSION" '
157162
/^## / {

0 commit comments

Comments
 (0)