Refactor release notes generation in GitHub Actions workflow
- Simplified the logic for creating release notes by replacing heredoc syntax with echo commands for better readability. - Ensured consistent formatting of release notes with clear headers and references to the changelog.
This commit is contained in:
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@@ -79,19 +79,15 @@ jobs:
|
||||
if python3 scripts/extract_changelog.py "${VERSION}" > release_notes.md; then
|
||||
echo "Changelog extracted for ${VERSION}"
|
||||
else
|
||||
cat > release_notes.md <<'EOF'
|
||||
# yaze Release Notes
|
||||
|
||||
See docs/C1-changelog.md for full history.
|
||||
EOF
|
||||
fi
|
||||
else
|
||||
cat > release_notes.md <<'EOF'
|
||||
# yaze Release Notes
|
||||
|
||||
See docs/C1-changelog.md for full history.
|
||||
EOF
|
||||
fi
|
||||
echo "# yaze Release Notes" > release_notes.md
|
||||
echo "" >> release_notes.md
|
||||
echo "See docs/C1-changelog.md for full history." >> release_notes.md
|
||||
fi
|
||||
else
|
||||
echo "# yaze Release Notes" > release_notes.md
|
||||
echo "" >> release_notes.md
|
||||
echo "See docs/C1-changelog.md for full history." >> release_notes.md
|
||||
fi
|
||||
echo "---- RELEASE NOTES START ----"
|
||||
cat release_notes.md
|
||||
echo "---- RELEASE NOTES END ----"
|
||||
|
||||
Reference in New Issue
Block a user