Skip to content

Commit

Permalink
Fix newsletter ci formatting (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelOnFira authored Apr 10, 2024
1 parent ee45544 commit e94e4da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
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

0 comments on commit e94e4da

Please sign in to comment.