Skip to content

Commit a1581ea

Browse files
authored
Create irc-notify.yaml
1 parent 99a2150 commit a1581ea

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/irc-notify.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: "Push Notification"
2+
on: [push, pull_request, create]
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: irc push
9+
uses: rectalogic/notify-irc@v1
10+
if: github.event_name == 'push'
11+
with:
12+
channel: "#gonzobot-dev"
13+
nickname: tnr-git
14+
server: irc.snoonet.org
15+
sasl_password: ${{ secrets.IRC_PASSWORD }}
16+
message: |
17+
${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
18+
${{ join(github.event.commits.*.message) }}
19+
- name: irc pull request
20+
uses: rectalogic/notify-irc@v1
21+
if: github.event_name == 'pull_request'
22+
with:
23+
channel: "#gonzobot-dev"
24+
nickname: tnr-git
25+
server: irc.snoonet.org
26+
sasl_password: ${{ secrets.IRC_PASSWORD }}
27+
message: |
28+
${{ github.actor }} opened PR ${{ github.event.html_url }}
29+
- name: irc tag created
30+
uses: rectalogic/notify-irc@v1
31+
if: github.event_name == 'create' && github.event.ref_type == 'tag'
32+
with:
33+
channel: "#gonzobot-dev"
34+
nickname: tnr-git
35+
server: irc.snoonet.org
36+
sasl_password: ${{ secrets.IRC_PASSWORD }}
37+
message: |
38+
${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}

0 commit comments

Comments
 (0)