Skip to content

Commit 493a953

Browse files
committed
build: release notes v2
1 parent 51a3a33 commit 493a953

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/maven-central.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,27 +93,34 @@ jobs:
9393
# 3. Initialize the changelog file
9494
> changelog.md
9595
96-
# 4. Conditionally add "What is new?" only if new_issues.md has content (-s)
96+
# 4. Conditionally add "What's New" if new_issues.md has content (-s)
9797
if [ -s new_issues.md ]; then
98-
echo "## What is new?" >> changelog.md
98+
echo "## 🚀 What's New" >> changelog.md
99+
echo "" >> changelog.md
99100
cat new_issues.md >> changelog.md
100101
echo "" >> changelog.md
101102
fi
102103
103-
# 5. Build the rest of the changelog ("Changes" is always present)
104-
cat << EOF >> changelog.md
105-
## Changes
106-
$(cat other_issues.md)
104+
# 5. Conditionally add "Other Changes" if other_issues.md has content
105+
if [ -s other_issues.md ]; then
106+
echo "## 🛠️ Changes" >> changelog.md
107+
echo "" >> changelog.md
108+
cat other_issues.md >> changelog.md
109+
echo "" >> changelog.md
110+
fi
107111
112+
# 6. Build the rest of the changelog (Links & Sponsors)
113+
cat << EOF >> changelog.md
114+
### 🔗 Links & Resources
108115
- [$CURRENT_TAG](https://github.com/jooby-project/jooby/tree/$CURRENT_TAG)
109-
- [Issues](https://github.com/jooby-project/jooby/milestone/$MILESTONE_ID?closed=1)
116+
- [Closed Issues](https://github.com/jooby-project/jooby/milestone/$MILESTONE_ID?closed=1)
110117
- [Changelog](https://github.com/jooby-project/jooby/compare/$PREV_TAG...$CURRENT_TAG)
111-
- [Dependencies](https://github.com/jooby-project/jooby/pulls?q=is%3Apr+label%3Adependencies+is%3Aclosed+milestone%3A$VERSION_NUM)
118+
- [Dependency Updates](https://github.com/jooby-project/jooby/pulls?q=is%3Apr+label%3Adependencies+is%3Aclosed+milestone%3A$VERSION_NUM)
112119
113-
## Support my work
114-
- [Sponsor](https://github.com/sponsors/jknack)
120+
## 💖 Support my work
121+
- [Sponsor Jooby](https://github.com/sponsors/jknack)
115122
116-
### Sponsors
123+
### 🏆 Sponsors
117124
- [@premium-minds](https://github.com/premium-minds)
118125
- [@agentgt](https://github.com/agentgt)
119126
- [@tipsy](https://github.com/tipsy)

0 commit comments

Comments
 (0)