Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 35cf8b6

Browse files
committed
Wrap changelog in ``` and remove version header
1 parent ede2cae commit 35cf8b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/nightly-build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,25 @@ jobs:
4141

4242
# Extract the latest changelog section
4343
# Pulls everything after the first version header like "= 8.1.0 - ... =" until the next "=" section header or end of file
44-
- name: Extract latest changelog section
44+
- name: Extract latest changelog section (without heading, wrapped in code block)
4545
id: changelog
4646
run: |
4747
version_line_found=0
4848
echo "CHANGELOG<<EOF" >> $GITHUB_OUTPUT
49+
echo '```' >> $GITHUB_OUTPUT
4950
while IFS= read -r line; do
5051
if [[ $line == =\ *\ = ]]; then
5152
if [[ $version_line_found -eq 1 ]]; then
5253
break
5354
else
5455
version_line_found=1
55-
echo "$line" >> $GITHUB_OUTPUT
56+
continue
5657
fi
5758
elif [[ $version_line_found -eq 1 ]]; then
5859
echo "$line" >> $GITHUB_OUTPUT
5960
fi
6061
done < changelog.txt
62+
echo '```' >> $GITHUB_OUTPUT
6163
echo "EOF" >> $GITHUB_OUTPUT
6264
6365
- name: Create or Update GitHub Release

0 commit comments

Comments
 (0)