File tree Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Expand file tree Collapse file tree 2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 1+ # Every month create newsletter issue.
2+
13name : Newsletter Issue
24
35on :
2729 - name : IRC notification
2830 uses : Gottox/irc-message-action@v1
2931 with :
30- channel : ' #pythonpune '
31- nickname : pypune_gh_ ${{ github.run_id }}
32+ channel : ${{ secrets.channel }}
33+ nickname : newsletter_ ${{ github.run_id }}
3234 message : |-
3335 ${{ steps.event.outputs.edition }} PythonPune newsletter collection box issue created.
3436 Please feel free to contribute ${{ steps.newsletter-issue.outputs.url }}
Original file line number Diff line number Diff line change 1+ # Send GitHub notifications to `pythonpune` IRC channel.
2+
3+ name : Notifications
4+
5+ on :
6+ issue_comment :
7+ types : [created]
8+ issues :
9+ types : [opened]
10+
11+ jobs :
12+ talk-proposal :
13+ # run only when issue open with label `talk-proposal`.
14+ if : github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'talk-proposal')
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : talk-proposal link
18+ run : echo ${{ github.event.issue.html_url }}
19+ - name : IRC notification
20+ uses : Gottox/irc-message-action@v1
21+ with :
22+ channel : ${{ secrets.channel }}
23+ nickname : talk_proposal_${{ github.run_id }}
24+ message : |-
25+ Talk-Proposal: ${{ github.event.issue.title }}
26+ ${{ github.event.issue.html_url }}
27+
28+ newsletter-comment :
29+ # run only when comment on issue with label `newsletter`.
30+ if : github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'newsletter')
31+ runs-on : ubuntu-latest
32+ steps :
33+ - name : comment
34+ run : echo "${{ github.event.comment.body }}"
35+ - name : IRC notification
36+ uses : Gottox/irc-message-action@v1
37+ with :
38+ channel : ${{ secrets.channel }}
39+ nickname : newsletter_${{ github.run_id }}
40+ message : ${{ github.event.comment.body }}
You can’t perform that action at this time.
0 commit comments