1name: "Push Notification"
2on: [push, pull_request, create]
3
4jobs:
5  test:
6    runs-on: ubuntu-latest
7    steps:
8      - name: irc push
9        uses: rectalogic/notify-irc@v1
10        if: github.event_name == 'push'
11        with:
12          server: "irc.libera.chat"
13          channel: "#lk"
14          nickname: lk-github
15          notice: false
16          message: |
17            ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
18            ${{ join(github.event.commits.*.message) }}
19      - name: irc pull request
20        uses: rectalogic/notify-irc@v1
21        if: github.event_name == 'pull_request'
22        with:
23          server: "irc.libera.chat"
24          channel: "#lk"
25          nickname: lk-github
26          notice: false
27          message: |
28            ${{ github.actor }} opened PR ${{ github.event.html_url }}
29      - name: irc tag created
30        uses: rectalogic/notify-irc@v1
31        if: github.event_name == 'create' && github.event.ref_type == 'tag'
32        with:
33          server: "irc.libera.chat"
34          channel: "#lk"
35          nickname: lk-github
36          notice: false
37          message: |
38            ${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }}
39