void-packages/.github/workflows/notify-irc.yaml
2019-12-18 21:50:29 +01:00

44 lines
1.6 KiB
YAML

name: "Push Notification"
on:
push:
branches: [master]
pull_request:
types: [opened, closed]
issues:
types: [opened, closed]
jobs:
ircnotify:
runs-on: ubuntu-latest
steps:
- name: irc push
uses: rectalogic/notify-irc@v1
if: github.event_name == 'push' && github.repository == 'void-linux/void-packages'
with:
#notice: true
channel: "#xbps"
nickname: void-packages
sasl_password: ${{ secrets.freenode_password_void_packages }}
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
channel: "#xbps"
nickname: void-packages
sasl_password: ${{ secrets.freenode_password_void_packages }}
tls: true
message: "${{ github.actor }} ${{ github.event.action }} pull request #${{ github.event.pull_request.number }} “${{ github.event.pull_request.title }}”"
- 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
sasl_password: ${{ secrets.freenode_password_void_packages }}
tls: true
message: "${{ github.actor }} ${{ github.event.action }} issue #${{ github.event.issue.number }} “${{ github.event.issue.title }}”"