Skip to content

Commit

Permalink
test IRC build notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna committed Apr 16, 2021
1 parent 25331c2 commit 9aa4b48
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/irc_notify.yml
@@ -0,0 +1,43 @@
# send build notifications to the #mapserver IRC channel
# homepage: https://github.com/marketplace/actions/notify-irc

name: "IRC Push Notification"
description: "Send a notification message to the #mapserver IRC channel"
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
irc_notify:
runs-on: ubuntu-latest
#if: github.repository == 'MapServer/MapServer'
steps:
- name: irc push
uses: rectalogic/notify-irc@v1
if: github.event_name == 'push'
with:
channel: "#mapserver"
nickname: mapserver-github-notifier
message: |
${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
${{ join(github.event.commits.*.message) }}
- name: irc pull request
uses: rectalogic/notify-irc@v1
if: github.event_name == 'pull_request'
with:
channel: "#mapserver"
nickname: mapserver-github-notifier
message: |
${{ github.actor }} opened PR ${{ github.event.html_url }}
- name: irc tag created
uses: rectalogic/notify-irc@v1
if: github.event_name == 'create' && github.event.ref_type == 'tag'
with:
channel: "#mapserver"
nickname: mapserver-github-notifier
message: |
${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}

0 comments on commit 9aa4b48

Please sign in to comment.