Skip to content

Commit f2f89ca

Browse files
authored
add IRC notify action (#300)
1 parent 293cc7b commit f2f89ca

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/irc_notify.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# send build notifications to the #mapcache IRC channel
2+
# homepage: https://github.com/marketplace/actions/notify-irc
3+
4+
name: "IRC Push Notification"
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
irc_notify:
15+
runs-on: ubuntu-latest
16+
#if: github.repository == 'MapServer/mapcache'
17+
steps:
18+
- name: irc push
19+
uses: rectalogic/notify-irc@v1
20+
if: github.event_name == 'push'
21+
with:
22+
channel: "#mapcache"
23+
server: "irc.libera.chat"
24+
nickname: mapcache-github-notifier
25+
message: |
26+
${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
27+
${{ join(github.event.commits.*.message) }}
28+
- name: irc pull request
29+
uses: rectalogic/notify-irc@v1
30+
if: github.event_name == 'pull_request'
31+
with:
32+
channel: "#mapcache"
33+
server: "irc.libera.chat"
34+
nickname: mapcache-github-notifier
35+
message: |
36+
${{ github.actor }} opened PR ${{ github.event.pull_request.html_url }}
37+
- name: irc tag created
38+
uses: rectalogic/notify-irc@v1
39+
if: github.event_name == 'create' && github.event.ref_type == 'tag'
40+
with:
41+
channel: "#mapcache"
42+
server: "irc.libera.chat"
43+
nickname: mapcache-github-notifier
44+
message: |
45+
${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}

0 commit comments

Comments
 (0)