From 87c5851f7c0858ef2034c1a06d9787c1581950af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alice=20Zo=C3=AB=20Bevan=E2=80=93McGregor?= Date: Fri, 11 Aug 2023 08:47:01 -0400 Subject: [PATCH] IRC notifiation workflow. --- .github/workflows/notify-irc.yml | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/notify-irc.yml diff --git a/.github/workflows/notify-irc.yml b/.github/workflows/notify-irc.yml new file mode 100644 index 0000000..42657d1 --- /dev/null +++ b/.github/workflows/notify-irc.yml @@ -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 }}