Skip to content

Commit

Permalink
add IRC notification to odis channel
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna committed Apr 12, 2024
1 parent 36bbe01 commit 95a2bf6
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/irc_notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# send build notifications to the #odis IRC channel
# homepage: https://github.com/marketplace/actions/notify-irc

name: "IRC Push Notification"
on:
push:
branches:
- main
pull_request:
branches:
- main

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

0 comments on commit 95a2bf6

Please sign in to comment.