Skip to content

Commit

Permalink
Merge branch 'topic/vscode-changelog' into 'master'
Browse files Browse the repository at this point in the history
Switch to maintaining a tracked CHANGELOG.md

See merge request eng/ide/ada_language_server!1661
  • Loading branch information
eliericha committed Aug 20, 2024
2 parents a23dbcc + 46ffa68 commit f5b8461
Show file tree
Hide file tree
Showing 3 changed files with 545 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pack-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \<next> section with the tag
sed -e "s/^## \\\\<next>$/## $TAG/" <CHANGELOG.md
}

create_changelog >"$ext_dir/CHANGELOG.md"

(
cd "$ext_dir"

Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '/^## \\<next>/,/^##/p' <CHANGELOG.md | tail -n +2 | head -n -1

COMMITS=commits.txt

Expand Down
Loading

0 comments on commit f5b8461

Please sign in to comment.