Skip to content

Commit

Permalink
IRC notifiation workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
amcgregor committed Aug 11, 2023
1 parent 4dd6b08 commit 87c5851
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/notify-irc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Push Notification"
on: [push, pull_request, create]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: irc push
uses: rectalogic/notify-irc@v1
if: github.event_name == 'push'
with:
server: "irc.libera.chat"
channel: "#marrow"
nickname: marrow
notice: true
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:
server: "irc.libera.chat"
channel: "#marrow"
nickname: marrow
notice: true
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:
server: "irc.libera.chat"
channel: "#marrow"
nickname: marrow
notice: true
message: |
${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}

0 comments on commit 87c5851

Please sign in to comment.