File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,13 @@ echo "[$SCRIPT_NAME] Copying completed"
31
31
32
32
echo " [$SCRIPT_NAME ] Generate changelog"
33
33
cp docs/en/_placeholders/changelog/_index.md docs/en/whats-new/changelog/index.md
34
- if grep -q ' ^# $(date +%Y) Changelog' ClickHouse/CHANGELOG.md; then
35
- sed ' /^# $(date +%Y) Changelog/d' ClickHouse/CHANGELOG.md > temp.txt
36
- cat >> docs/en/whats-new/changelog/index.md
37
- rm temp.txt
34
+ if grep -q " ^# $( date +%Y) Changelog" ClickHouse/CHANGELOG.md; then
35
+ echo " Generating $( date +%Y) Changelog..."
36
+ sed " /^# $( date +%Y) Changelog/d" ClickHouse/CHANGELOG.md > temp.txt
37
+ echo " Changelog copied to temp.txt"
38
+ cat temp.txt >> docs/en/whats-new/changelog/index.md
39
+ echo " Changelog written to docs/en/whats-new/changelog/index.md"
40
+ rm -f temp.txt
38
41
echo " $( date +%Y) Changelog was updated."
39
42
else
40
43
current_year=" $( date +%Y) "
You can’t perform that action at this time.
0 commit comments