|
3 | 3 | ### Usage
|
4 | 4 |
|
5 | 5 | See [action.yml](./action.yml) For comprehensive list of options.
|
6 |
| - |
| 6 | + |
| 7 | +This is a fork of https://github.com/rectalogic/notify-irc |
| 8 | +but I had issues getting it to send multiline messages. |
| 9 | +This has been tweaked to issue IRC notifications mimicking |
| 10 | +the style of `n.tkte.ch`'s Notifico. |
| 11 | + |
| 12 | +Jorgen Lundman <[email protected]> |
| 13 | + |
7 | 14 | Example, send notifications to Libera Chat IRC channel:
|
8 | 15 |
|
9 | 16 | ```yaml
|
10 |
| -name: "Push Notification" |
11 |
| -on: [push, pull_request, create] |
| 17 | + |
| 18 | +name: Notify IRC |
| 19 | + |
| 20 | +on: |
| 21 | + push: |
| 22 | + issues: |
| 23 | + types: |
| 24 | + - opened |
| 25 | + - edited |
| 26 | + - closed |
| 27 | + issue_comment: |
| 28 | + pull_request: |
| 29 | + discussion: |
| 30 | + types: |
| 31 | + - created |
| 32 | + - edited |
| 33 | + - closed |
| 34 | + - answered |
| 35 | + discussion_comment: |
| 36 | + create: |
| 37 | + delete: |
12 | 38 |
|
13 | 39 | jobs:
|
14 |
| - test: |
| 40 | + notify-irc: |
15 | 41 | runs-on: ubuntu-latest
|
| 42 | + |
16 | 43 | steps:
|
17 |
| - - name: irc push |
18 |
| - uses: rectalogic/notify-irc@v1 |
19 |
| - if: github.event_name == 'push' |
| 44 | + - name: Notify IRC |
| 45 | + uses: openzfsonwindows/notify-irc@v1 |
20 | 46 | with:
|
21 |
| - channel: "#mychannel" |
22 |
| - server: "irc.libera.chat" |
23 |
| - nickname: my-github-notifier |
24 |
| - message: | |
25 |
| - ${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }} |
26 |
| - ${{ join(github.event.commits.*.message) }} |
27 |
| - - name: irc pull request |
28 |
| - uses: rectalogic/notify-irc@v1 |
29 |
| - if: github.event_name == 'pull_request' |
30 |
| - with: |
31 |
| - channel: "#mychannel" |
32 |
| - server: "irc.libera.chat" |
33 |
| - nickname: my-github-notifier |
34 |
| - message: | |
35 |
| - ${{ github.actor }} opened PR ${{ github.event.pull_request.html_url }} |
36 |
| - - name: irc tag created |
37 |
| - uses: rectalogic/notify-irc@v1 |
38 |
| - if: github.event_name == 'create' && github.event.ref_type == 'tag' |
39 |
| - with: |
40 |
| - channel: "#mychannel" |
41 |
| - server: "irc.libera.chat" |
42 |
| - nickname: my-github-notifier |
43 |
| - message: | |
44 |
| - ${{ github.actor }} tagged ${{ github.repository }} ${{ github.event.ref }} |
| 47 | + channel: "#yourchannel" |
| 48 | + server: "irc.server.net" |
| 49 | + nickname: "irc-bot-name" |
| 50 | + ansicolor: "true" |
| 51 | + eventpath: ${{ github.event_path }} |
| 52 | + |
45 | 53 | ```
|
| 54 | + |
| 55 | + |
| 56 | + |
0 commit comments