From 370189cbee54981de23a4c6fd0c037da65973348 Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Mon, 22 Jun 2026 12:42:47 +0800 Subject: [PATCH] fix: resolve release changelog path --- scripts/release-notes.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/release-notes.sh b/scripts/release-notes.sh index bc9a596..ea2c16b 100755 --- a/scripts/release-notes.sh +++ b/scripts/release-notes.sh @@ -10,6 +10,8 @@ if [[ -z "$tag" ]]; then fi version="${tag#v}" +script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +changelog="$script_dir/../changelog.md" awk -v version="$version" ' $0 == "## " version { @@ -27,4 +29,4 @@ awk -v version="$version" ' exit 1 } } -' changelog.md +' "$changelog"