Skip to content

Commit 7590722

Browse files
committed
General action fixes
1 parent b53cf47 commit 7590722

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

Diff for: .github/newsletter-issue-template.md

+10-22
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,15 @@ newsletter with {{ env.NEWSLETTER_MONTH }}'s news!
1313

1414
## Current Schedule
1515

16-
The deadline for all section PRs is the **03.{{ env.NEWSLETTER_DEADLINE }}**
16+
The deadline for all section PRs is the **3rd of {{ env.NEWSLETTER_MONTH_NAME}}, {{ env.NEWSLETTER_YEAR }}**
1717

18-
We _may_ still accept PRs that are submitted later than this, as long as they're
19-
ready before the newsletter's release, but this isn't guaranteed.
20-
If you want your section to be included, don't leave it till the last minute!
18+
We _may_ still accept PRs that are submitted later than this, as long as they're ready before the newsletter's release, but this isn't guaranteed. If you want your section to be included, don't leave it till the last minute!
2119

2220
## Current Structure & Status
2321

24-
Below is our current planned structure for the newsletter,
25-
and the status of each PR (which we'll try to keep updated).
22+
Below is our current planned structure for the newsletter, and the status of each PR (which we'll try to keep updated).
2623

27-
This is **not** an exhaustive list - if you have your own project that you want
28-
to write about, just make a comment on this issue and open a PR!
24+
This is **not** an exhaustive list - if you have your own project that you want to write about, just make a comment on this issue and open a PR!
2925

3026
### Game Updates
3127

@@ -68,20 +64,12 @@ to write about, just make a comment on this issue and open a PR!
6864
If you want to help writing the newsletter:
6965

7066
- **Read [CONTRIBUTING.md](https://github.com/rust-gamedev/rust-gamedev.github.io/blob/source/CONTRIBUTING.md?rgh-link-date=2023-09-12T16%3A17%3A34Z).**
71-
- Choose one or more of the "🆓 **free**" sections listed below, and leave a
72-
comment letting us know you want to work on them.
73-
- The links in brackets (like `[1](#), [2](#), [3](#)`) are suggestions of
74-
links to include in the section. Feel free to add more!
75-
- The username listed next to the section (like `@janhohenheim?`) is a
76-
suggestion of who may want to pick up the work (usually the project's
77-
developer, or someone who has expressed interest in the past).
78-
- You are not obligated to write a section if you're tagged or your project
79-
is listed! You're welcome to ask someone else to write the section,
80-
or to ask for your project to be excluded from this month's post.
81-
- Extra sections not listed in the plan are welcomed -
82-
just leave a comment and open a PR!
83-
- Write a short overview in the newsletter's Markdown file,
84-
making sure to follow the style guidelines (see below).
67+
- Choose one or more of the "🆓 **free**" sections listed below, and leave a comment letting us know you want to work on them.
68+
- The links in brackets (like `[1](#), [2](#), [3](#)`) are suggestions of links to include in the section. Feel free to add more!
69+
- The username listed next to the section (like `@janhohenheim?`) is a suggestion of who may want to pick up the work (usually the project's developer, or someone who has expressed interest in the past).
70+
- You are not obligated to write a section if you're tagged or your project is listed! You're welcome to ask someone else to write the section, or to ask for your project to be excluded from this month's post.
71+
- Extra sections not listed in the plan are welcomed - just leave a comment and open a PR!
72+
- Write a short overview in the newsletter's Markdown file, making sure to follow the style guidelines (see below).
8573
- Send a PR _to the `source` branch_ (example: [N15: A/B Street #336](https://github.com/rust-gamedev/rust-gamedev.github.io/pull/336)).
8674
- Mention this issue in your PR's description to link it all together.
8775

Diff for: .github/newsletter-template.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+++
22
title = "This Month in Rust GameDev #{{ NEWSLETTER_COUNTER }} - {{ NEWSLETTER_MONTH }} {{ NEWSLETTER_YEAR }}"
33
transparent = true
4-
date = {{ NEWSLETTER_DEADLINE }}
4+
date = {{ NEWSLETTER_YEAR }}-{{ NEWSLETTER_MONTH }}-03
55
draft = true
66
+++
77

@@ -35,8 +35,8 @@ Feel free to send PRs about your own projects!
3535
- [Learning Material Updates](#learning-material-updates)
3636
- [Tooling Updates](#tooling-updates)
3737
- [Library Updates](#library-updates)
38-
- [Other News](#other-news)
3938
- [Popular Workgroup Issues in GitHub](#popular-workgroup-issues-in-github)
39+
- [Other News](#other-news)
4040
- [Meeting Minutes](#meeting-minutes)
4141
- [Discussions](#discussions)
4242
- [Requests for Contribution](#requests-for-contribution)

Diff for: .github/workflows/create-newsletter.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
- name: Set environment variables
1919
run: |
2020
echo "NEWSLETTER_MONTH=$(date +'%B')" >> $GITHUB_ENV
21+
echo "NEWSLETTER_MONTH_NAME=$(date +'%b')" >> $GITHUB_ENV
2122
echo "NEWSLETTER_YEAR=$(date +'%Y')" >> $GITHUB_ENV
2223
echo "NEWSLETTER_DEADLINE=$(date -d' 1 month ' '+%m.%Y')" >> $GITHUB_ENV
2324
# take the amount of months since feb 2024 and add 50
24-
echo "NEWSLETTER_COUNTER=$(( ( ( $(date +'%Y') - 2024 ) * 12 + $(date +'%m') - 2 ) + 50 ))" >> $GITHUB_ENV
25+
echo "NEWSLETTER_COUNTER=$(( ( ( $(date +'%Y') - 2024 ) * 12 + $(date +'%m') - 4 ) + 50 ))" >> $GITHUB_ENV
2526
- name: Create newsletter scaffold
2627
run: ./.github/create_newsletter_scaffold.sh
2728
- name: Commit and create pull request

0 commit comments

Comments
 (0)