summaryrefslogtreecommitdiffstats
path: root/.github/workflows/notify.yml
blob: b3d29771371a8c6e99fb32c14869bfb7e98f4afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "Push Notification"
on:
  push:
  pull_request:
      types: [opened, review_requested]

jobs:
  Send_IRC_Notification:
    runs-on: ubuntu-latest
    steps:
      - name: Handle Commit
        uses: rectalogic/notify-irc@v1
        if: github.event_name == 'push' && github.repository == 'HandBrake/HandBrake'
        with:
          channel: "#handbrake"
          nickname: handbrake-bot
          server: chat.freenode.net
          password: ${{ secrets.IRC_PASSWORD }}
          port: 6697
          tls: true
          message: |
            COMMIT: ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }} ${{ join(github.event.commits.*.message) }}
      - name: Handle Pull Request
        uses: rectalogic/notify-irc@v1
        if: github.event_name == 'pull_request' && github.repository == 'HandBrake/HandBrake'
        with:
          channel: "#handbrake"
          nickname: handbrake-bot
          server: chat.freenode.net
          password: ${{ secrets.IRC_PASSWORD }}
          port: 6697
          tls: true
          message: |
            PULL REQUEST: ${{ github.actor }} ${{ github.event.action }} a Pull Request ${{ github.event.pull_request.html_url }}