Skip to content

Commit

Permalink
Merge pull request #115 from digitronik/newsletter-issue
Browse files Browse the repository at this point in the history
Automating newsletter issue
  • Loading branch information
digitronik authored Jul 26, 2020
2 parents 4405f86 + 8606525 commit cbbb460
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/newsletter_box.md
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.
34 changes: 34 additions & 0 deletions .github/workflows/newsletter-issue.yml
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 }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: "Lint Markdown files"
name: Sanity-Checks

on: [pull_request]
on:
pull_request:
branches:
- master

jobs:
lint-files:
Expand Down

0 comments on commit cbbb460

Please sign in to comment.