-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from digitronik/newsletter-issue
Automating newsletter issue
- Loading branch information
Showing
3 changed files
with
57 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Newsletter collection box | ||
title: "{{ env.EVENT }} PythonPune newsletter collection box" | ||
labels: newsletter | ||
--- | ||
|
||
Let's use this issue to collect Python related news, new package updates and events happening around Pune. | ||
We can compile and publish it during **{{ env.EVENT }} PythonPune** meetup. | ||
|
||
### How to add news: | ||
Comment on this issue with news link. | ||
Please try to include the source like tweet / reddit and a TL;DR section giving brief about the link. | ||
|
||
### How to add new package release: | ||
Paste the link of new package release | ||
|
||
### How to include events here: | ||
If a new event is happening in Pune and wants to share in the newsletter, feel free to drop the event link with date and venue. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Newsletter Issue | ||
|
||
on: | ||
schedule: | ||
# At 00:30 on day-of-month 1. | ||
- cron: "30 0 1 * *" | ||
|
||
jobs: | ||
issue: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Event edition | ||
id: event | ||
run: echo "::set-output name=edition::$(date +'%B %Y')" | ||
|
||
- name: Create issue | ||
uses: JasonEtco/create-an-issue@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
EVENT: ${{ steps.event.outputs.edition }} | ||
with: | ||
filename: .github/ISSUE_TEMPLATE/newsletter_box.md | ||
id: newsletter-issue | ||
|
||
- name: IRC notification | ||
uses: Gottox/irc-message-action@v1 | ||
with: | ||
channel: '#pythonpune' | ||
nickname: pypune_gh_${{ github.run_id }} | ||
message: |- | ||
${{ steps.event.outputs.edition }} PythonPune newsletter collection box issue created. | ||
Please feel free to contribute ${{ steps.newsletter-issue.outputs.url }} |
7 changes: 5 additions & 2 deletions
7
.github/workflows/main.yml → .github/workflows/sanity-checks.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters