Skip to content

Commit

Permalink
Merge pull request #16 from jmckenna/irc
Browse files Browse the repository at this point in the history
Add notify-irc GitHub action for website
  • Loading branch information
klassenjs authored Jun 18, 2021
2 parents 8bb90bf + 9681536 commit ff19da8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/irc_notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "IRC Push Notification"
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
irc_notify:
runs-on: ubuntu-latest
if: github.repository == 'geomoose/geomoose-website'
steps:
- name: irc push
uses: rectalogic/notify-irc@v1
if: github.event_name == 'push'
with:
channel: "#geomoose"
server: "irc.libera.chat"
nickname: geomoose-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: "#geomoose"
server: "irc.libera.chat"
nickname: geomoose-github-notifier
message: |
${{ github.actor }} opened PR ${{ github.event.pull_request.html_url }}
- name: irc tag created
uses: rectalogic/notify-irc@v1
if: github.event_name == 'create' && github.event.ref_type == 'tag'
with:
channel: "#geomoose"
server: "irc.libera.chat"
nickname: geomoose-github-notifier
message: |
${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}

0 comments on commit ff19da8

Please sign in to comment.