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
|
if python3 scripts/extract_changelog.py "${VERSION}" > release_notes.md; then
|
||||||
echo "Changelog extracted for ${VERSION}"
|
echo "Changelog extracted for ${VERSION}"
|
||||||
else
|
else
|
||||||
cat > release_notes.md <<'EOF'
|
echo "# yaze Release Notes" > release_notes.md
|
||||||
# yaze Release Notes
|
echo "" >> release_notes.md
|
||||||
|
echo "See docs/C1-changelog.md for full history." >> release_notes.md
|
||||||
See docs/C1-changelog.md for full history.
|
fi
|
||||||
EOF
|
else
|
||||||
fi
|
echo "# yaze Release Notes" > release_notes.md
|
||||||
else
|
echo "" >> release_notes.md
|
||||||
cat > release_notes.md <<'EOF'
|
echo "See docs/C1-changelog.md for full history." >> release_notes.md
|
||||||
# yaze Release Notes
|
fi
|
||||||
|
|
||||||
See docs/C1-changelog.md for full history.
|
|
||||||
EOF
|
|
||||||
fi
|
|
||||||
echo "---- RELEASE NOTES START ----"
|
echo "---- RELEASE NOTES START ----"
|
||||||
cat release_notes.md
|
cat release_notes.md
|
||||||
echo "---- RELEASE NOTES END ----"
|
echo "---- RELEASE NOTES END ----"
|
||||||
|
|||||||
Reference in New Issue
Block a user