Skip to content

Fix newsletter ci formatting #1475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/create_newsletter_scaffold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@ if [[ -z "${NEWSLETTER_COUNTER}" ]]; then
exit 1
fi

# NEWSLETTER_NEXT_MONTH_NUMBER
if [[ -z "${NEWSLETTER_NEXT_MONTH_NUMBER}" ]]; then
echo "NEWSLETTER_NEXT_MONTH_NUMBER is not set. Exiting..."
exit 1
fi

cp .github/newsletter-template.md index.md
sed -i "s/{{\s*NEWSLETTER_MONTH\s*}}/${NEWSLETTER_MONTH}/g" index.md
sed -i "s/{{\s*NEWSLETTER_YEAR\s*}}/${NEWSLETTER_YEAR}/g" index.md
sed -i "s/{{\s*NEWSLETTER_COUNTER\s*}}/${NEWSLETTER_COUNTER}/g" index.md
sed -i "s/{{\s*NEWSLETTER_NEXT_MONTH_NUMBER\s*}}/${NEWSLETTER_NEXT_MONTH_NUMBER}/g" index.md
# Create a dir in content/news with the counter with 3 digits as name
destination="content/news/$(printf "%03d" ${NEWSLETTER_COUNTER})"
mkdir -p $destination
Expand Down
9 changes: 4 additions & 5 deletions .github/newsletter-issue-template.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
---
title: "Newsletter {{ env.NEWSLETTER_COUNTER}}: {{ env.NEWSLETTER_MONTH }} {{ env.NEWSLETTER_YEAR }}"
labels: coordination, help wanted
assignees: janhohenheim
assignees: AngelOnFira, mamaicode, janhohenheim
---

###### tags: `newsletter`
# Newsletter {{ env.NEWSLETTER_COUNTER}}: {{ env.NEWSLETTER_MONTH }} {{ env.NEWSLETTER_YEAR }}

**Editors:**
**Editors:** @janhohenheim, @AngelOnFira, @mamaicode

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

## Current Schedule

Expand Down
Loading