From 9681536de42884caef1a7d685bf21d68a32afce2 Mon Sep 17 00:00:00 2001 From: jmckenna Date: Fri, 18 Jun 2021 13:22:42 -0300 Subject: [PATCH] add IRC notifications for docs --- .github/workflows/irc_notify.yml | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/irc_notify.yml diff --git a/.github/workflows/irc_notify.yml b/.github/workflows/irc_notify.yml new file mode 100644 index 0000000..8e7e9c5 --- /dev/null +++ b/.github/workflows/irc_notify.yml @@ -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 }}