From 1e504671cee15fcfcf5e51096defef7a6450ace6 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Wed, 18 Dec 2019 20:28:18 +0100 Subject: [PATCH] .github/workflows: try to make irc notifications more useful --- .github/workflows/notify-irc.yaml | 34 +++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/.github/workflows/notify-irc.yaml b/.github/workflows/notify-irc.yaml index d71db79a8d..8d1490e573 100644 --- a/.github/workflows/notify-irc.yaml +++ b/.github/workflows/notify-irc.yaml @@ -1,5 +1,11 @@ name: "Push Notification" -on: [push, pull_request] +on: + push: + branches: [master] + pull_request: + types: [opened, closed] + issues: + types: [opened, closed] jobs: ircnotify: @@ -9,19 +15,29 @@ jobs: uses: rectalogic/notify-irc@v1 if: github.event_name == 'push' && github.repository == 'void-linux/void-packages' with: - #notice: true + notice: true channel: "#xbps" nickname: void-packages - message: |- - ${{ github.actor }} pushed to ${{ github.event.ref }} - >>> ${{ github.event.compare }} + tls: true + message: | + ${{ github.actor }} pushed ${{ github.event.compare }} - name: irc pull request uses: rectalogic/notify-irc@v1 if: github.event_name == 'pull_request' && github.repository == 'void-linux/void-packages' with: - #notice: true + notice: true channel: "#xbps" nickname: void-packages - message: |- - ${{ github.actor }} opened PR - >>> ${{ github.event.html_url }} + tls: true + message: | + ${{ github.actor }} ${{ github.event.action }} pull request #${{ github.event.pull_request.html_url }}“ ${{ github.event.pull_request.number }}” + - name: irc issue + uses: rectalogic/notify-irc@v1 + if: github.event_name == 'issues' && github.repository == 'void-linux/void-packages' + with: + notice: true + channel: "#xbps" + nickname: void-packages + tls: true + message: | + ${{ github.actor }} ${{ github.event.action }} issue #${{ github.event.issue.number }} “${{ github.event.issue.html_url }}”