Skip to content

Commit

Permalink
CAT-706 Add title to changelog page (#3573)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAkhmetov authored Oct 15, 2024
1 parent 1ec62d2 commit 0428e22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-cat-706.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add title to changelog page.
2 changes: 2 additions & 0 deletions context/app/markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Changelog

## v1.12.1 - 2024-10-10

- Prevent collections without a DOI from being counted on the homepage.
Expand Down
6 changes: 5 additions & 1 deletion etc/build/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ else
VERSION=`cd context && npm version major`
fi


echo "Version: $VERSION"

./grab-dependencies.sh
Expand All @@ -54,13 +55,16 @@ git commit -m "Version bump to $VERSION"

if ls CHANGELOG-*.md; then
(
echo '# Changelog'
echo
echo '##' $VERSION - `date +"%F"`
echo
# "-l" chomps and adds newline.
perl -lpe '' CHANGELOG-*.md
echo
echo
cat CHANGELOG.md
# Skip the first line of the existing changelog (the header).
tail -n +2 context/app/markdown/CHANGELOG.md
) > CHANGELOG.md.new
mv CHANGELOG.md.new context/app/markdown/CHANGELOG.md
git rm CHANGELOG-*.md
Expand Down

0 comments on commit 0428e22

Please sign in to comment.