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

Commit 69b6b04

Browse files
committed
Trim whitespace from changelog entry and rename tag to nightly
1 parent 35cf8b6 commit 69b6b04

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/nightly-build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ 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 (without heading, wrapped in code block)
44+
- name: Extract latest changelog section (cleaned + wrapped in code block)
4545
id: changelog
4646
run: |
4747
version_line_found=0
@@ -56,7 +56,10 @@ jobs:
5656
continue
5757
fi
5858
elif [[ $version_line_found -eq 1 ]]; then
59-
echo "$line" >> $GITHUB_OUTPUT
59+
# Trim whitespace-only lines
60+
if [[ ! "$line" =~ ^[[:space:]]*$ ]]; then
61+
echo "$line" >> $GITHUB_OUTPUT
62+
fi
6063
fi
6164
done < changelog.txt
6265
echo '```' >> $GITHUB_OUTPUT
@@ -65,7 +68,7 @@ jobs:
6568
- name: Create or Update GitHub Release
6669
uses: softprops/action-gh-release@v2
6770
with:
68-
tag_name: Nightly
71+
tag_name: nightly
6972
name: "Nightly Build"
7073
prerelease: true
7174
draft: false

0 commit comments

Comments
 (0)