Skip to content

Commit e94e4da

Browse files
authored
Fix newsletter ci formatting (#1475)
1 parent ee45544 commit e94e4da

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/create_newsletter_scaffold.sh

+7
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@ if [[ -z "${NEWSLETTER_COUNTER}" ]]; then
1717
exit 1
1818
fi
1919

20+
# NEWSLETTER_NEXT_MONTH_NUMBER
21+
if [[ -z "${NEWSLETTER_NEXT_MONTH_NUMBER}" ]]; then
22+
echo "NEWSLETTER_NEXT_MONTH_NUMBER is not set. Exiting..."
23+
exit 1
24+
fi
25+
2026
cp .github/newsletter-template.md index.md
2127
sed -i "s/{{\s*NEWSLETTER_MONTH\s*}}/${NEWSLETTER_MONTH}/g" index.md
2228
sed -i "s/{{\s*NEWSLETTER_YEAR\s*}}/${NEWSLETTER_YEAR}/g" index.md
2329
sed -i "s/{{\s*NEWSLETTER_COUNTER\s*}}/${NEWSLETTER_COUNTER}/g" index.md
30+
sed -i "s/{{\s*NEWSLETTER_NEXT_MONTH_NUMBER\s*}}/${NEWSLETTER_NEXT_MONTH_NUMBER}/g" index.md
2431
# Create a dir in content/news with the counter with 3 digits as name
2532
destination="content/news/$(printf "%03d" ${NEWSLETTER_COUNTER})"
2633
mkdir -p $destination

.github/newsletter-issue-template.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
---
22
title: "Newsletter {{ env.NEWSLETTER_COUNTER}}: {{ env.NEWSLETTER_MONTH }} {{ env.NEWSLETTER_YEAR }}"
33
labels: coordination, help wanted
4-
assignees: janhohenheim
4+
assignees: AngelOnFira, mamaicode, janhohenheim
55
---
66

7-
###### tags: `newsletter`
7+
# Newsletter {{ env.NEWSLETTER_COUNTER}}: {{ env.NEWSLETTER_MONTH }} {{ env.NEWSLETTER_YEAR }}
88

9-
**Editors:**
9+
**Editors:** @janhohenheim, @AngelOnFira, @mamaicode
1010

11-
Another month has gone by, so it's time to put together the Rust Gamedev
12-
newsletter with {{ env.NEWSLETTER_MONTH }}'s news!
11+
Another month has gone by, so it's time to put together the Rust Gamedev newsletter with {{ env.NEWSLETTER_MONTH }}'s news!
1312

1413
## Current Schedule
1514

0 commit comments

Comments
 (0)