Remove newline in changelog-pr action (#461)

This commit is contained in:
Håvard Gjøby Thom
2024-11-23 20:25:05 +01:00
committed by GitHub
parent 4bd68c1c8b
commit 349e9dad51
2 changed files with 2 additions and 8 deletions

View File

@ -35,7 +35,7 @@ jobs:
LATEST_DATE=$(echo "$DATES" | sed -n '1p')
SECOND_LATEST_DATE=$(echo "$DATES" | sed -n '2p')
TODAY=$(date +%Y-%m-%d)
TODAY=$(date -u +%Y-%m-%d)
echo "TODAY=$TODAY" >> $GITHUB_ENV
if [ "$LATEST_DATE" == "$TODAY" ]; then
@ -100,7 +100,7 @@ jobs:
const changelogPath = path.resolve('CHANGELOG.md');
const categorizedPRs = ${{ steps.get-categorized-prs.outputs.result }};
let newReleaseNotes = `\n## ${today}\n\n### Changed\n\n`;
let newReleaseNotes = `## ${today}\n\n### Changed\n\n`;
for (const { title, notes } of categorizedPRs) {
if (notes.length > 0) {
newReleaseNotes += `### ${title}\n\n${notes.join("\n")}\n\n`;