summaryrefslogtreecommitdiffstats
path: root/.github/workflows/notify.yml
blob: bcdadb2e15bdda2317723ef4407f840cbb38db37 (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
35
36
name: "Push Notification"
on: [push, pull_request]

jobs:
  Send_IRC_Notification:
    runs-on: ubuntu-latest
    steps:
      - name: Dump Data
        run: |
          echo ${{ github.event.html_url }}
          echo ${{ github.event }}
          echo ${{ github }} 
      
      - 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
          port: 6697
          tls: true
          message: |
            ${{ 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
          port: 6697
          tls: true
          message: |
            ${{ github.actor }} opened or updated a Pull Request ${{ github.event.html_url }}