File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,17 @@ if [[ -z "${NEWSLETTER_COUNTER}" ]]; then
1717 exit 1
1818fi
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+
2026cp .github/newsletter-template.md index.md
2127sed -i " s/{{\s*NEWSLETTER_MONTH\s*}}/${NEWSLETTER_MONTH} /g" index.md
2228sed -i " s/{{\s*NEWSLETTER_YEAR\s*}}/${NEWSLETTER_YEAR} /g" index.md
2329sed -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
2532destination=" content/news/$( printf " %03d" ${NEWSLETTER_COUNTER} ) "
2633mkdir -p $destination
Original file line number Diff line number Diff line change 11---
22title : " Newsletter {{ env.NEWSLETTER_COUNTER}}: {{ env.NEWSLETTER_MONTH }} {{ env.NEWSLETTER_YEAR }}"
33labels : 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
You can’t perform that action at this time.
0 commit comments