Skip to content

Commit 46ffa68

Browse files
committed
Use CHANGELOG.md in GitHub actions
1 parent 3527d5f commit 46ffa68

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/pack-binaries.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ NODE_PLATFORM=$(node -e "console.log(process.platform)")
66
NODE_ARCH=$(node -e "console.log(process.arch)")
77
ext_dir=integration/vscode/ada
88

9+
function create_changelog() {
10+
# Replace the \<next> section with the tag
11+
sed -e "s/^## \\\\<next>$/## $TAG/" <CHANGELOG.md
12+
}
13+
14+
create_changelog >"$ext_dir/CHANGELOG.md"
15+
916
(
1017
cd "$ext_dir"
1118

.github/workflows/release.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ git fetch --tags
2828
function release_notes() {
2929
echo "# Release notes"
3030

31-
git show --no-patch --format=%n "$TAG" |
32-
sed -e '1,/Release notes/d'
33-
echo ""
31+
# Select the content of the first section of CHANGELOG.md
32+
sed -n -e '/^## \\<next>/,/^##/p' <CHANGELOG.md | tail -n +2 | head -n -1
3433

3534
COMMITS=commits.txt
3635

0 commit comments

Comments
 (0)