diff --git a/.github/workflows/pack-binaries.sh b/.github/workflows/pack-binaries.sh index 5749b935..d08cffe0 100755 --- a/.github/workflows/pack-binaries.sh +++ b/.github/workflows/pack-binaries.sh @@ -6,6 +6,13 @@ NODE_PLATFORM=$(node -e "console.log(process.platform)") NODE_ARCH=$(node -e "console.log(process.arch)") ext_dir=integration/vscode/ada +function create_changelog() { + # Replace the \ section with the tag + sed -e "s/^## \\\\$/## $TAG/" "$ext_dir/CHANGELOG.md" + ( cd "$ext_dir" diff --git a/.github/workflows/release.sh b/.github/workflows/release.sh index dd1b7aad..46d61c97 100755 --- a/.github/workflows/release.sh +++ b/.github/workflows/release.sh @@ -28,9 +28,8 @@ git fetch --tags function release_notes() { echo "# Release notes" - git show --no-patch --format=%n "$TAG" | - sed -e '1,/Release notes/d' - echo "" + # Select the content of the first section of CHANGELOG.md + sed -n -e '/^## \\/,/^##/p'