-
Notifications
You must be signed in to change notification settings - Fork 16
43 lines (39 loc) · 1.45 KB
/
notifications.yml
File metadata and controls
43 lines (39 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Send GitHub notifications to `pythonpune` IRC channel.
name: Notifications
on:
issue_comment:
types: [created]
issues:
types: [opened]
jobs:
talk-proposal:
# run only when issue open with label `talk-proposal`.
if: github.event_name == 'issues' && contains(github.event.issue.labels.*.name, 'talk-proposal')
runs-on: ubuntu-latest
steps:
- name: talk-proposal link
run: echo ${{ github.event.issue.html_url }}
- name: IRC notification
uses: Gottox/irc-message-action@v1
with:
channel: "#pythonpune"
nickname: pypune_${{ github.run_id }}
message: |-
New talk proposal submission: ${{ github.event.issue.title }}
${{ github.event.issue.html_url }}
newsletter-comment:
# run only when comment on issue with label `newsletter`.
if: github.event_name == 'issue_comment' && contains(github.event.issue.labels.*.name, 'newsletter')
runs-on: ubuntu-latest
steps:
- name: comment
run: echo "${{ github.event.comment.body }}"
- name: IRC notification
uses: Gottox/irc-message-action@v1
with:
channel: "#pythonpune"
nickname: pypune_${{ github.run_id }}_1
message: |-
${{ github.event.comment.body }}
Submitted by: ${{ github.event.comment.user.login }}.
Have anything interesting to share? Add a comment here: ${{ github.event.comment.html_url }}