File tree 2 files changed +11
-5
lines changed
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
17
17
exit 1
18
18
fi
19
19
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
+
20
26
cp .github/newsletter-template.md index.md
21
27
sed -i " s/{{\s*NEWSLETTER_MONTH\s*}}/${NEWSLETTER_MONTH} /g" index.md
22
28
sed -i " s/{{\s*NEWSLETTER_YEAR\s*}}/${NEWSLETTER_YEAR} /g" index.md
23
29
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
24
31
# Create a dir in content/news with the counter with 3 digits as name
25
32
destination=" content/news/$( printf " %03d" ${NEWSLETTER_COUNTER} ) "
26
33
mkdir -p $destination
Original file line number Diff line number Diff line change 1
1
---
2
2
title : " Newsletter {{ env.NEWSLETTER_COUNTER}}: {{ env.NEWSLETTER_MONTH }} {{ env.NEWSLETTER_YEAR }}"
3
3
labels : coordination, help wanted
4
- assignees : janhohenheim
4
+ assignees : AngelOnFira, mamaicode, janhohenheim
5
5
---
6
6
7
- ###### tags: ` newsletter `
7
+ # Newsletter {{ env.NEWSLETTER_COUNTER}}: {{ env.NEWSLETTER_MONTH }} {{ env.NEWSLETTER_YEAR }}
8
8
9
- ** Editors:**
9
+ ** Editors:** @ janhohenheim , @ AngelOnFira , @ mamaicode
10
10
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!
13
12
14
13
## Current Schedule
15
14
You can’t perform that action at this time.
0 commit comments