| 1 |
name: "IRC Notifications" |
| 2 |
on: |
| 3 |
create: |
| 4 |
pull_request: |
| 5 |
types: [opened, closed, reopened] |
| 6 |
issues: |
| 7 |
types: [opened, closed, reopened] |
| 8 |
discussion: |
| 9 |
types: [created, closed, deleted] |
| 10 |
push: |
| 11 |
branches: |
| 12 |
- 'master_disabled' |
| 13 |
- 'v0.5_disabled' |
| 14 |
|
| 15 |
jobs: |
| 16 |
test: |
| 17 |
runs-on: ubuntu-latest |
| 18 |
steps: |
| 19 |
- name: irc push |
| 20 |
uses: rectalogic/notify-irc@v1 |
| 21 |
if: github.event_name == 'push' |
| 22 |
with: |
| 23 |
server: "irc.libera.chat" |
| 24 |
channel: "#labwc" |
| 25 |
nickname: "labwc" |
| 26 |
notice: true |
| 27 |
message: "[${{ github.event.ref }}] ${{ github.actor }} pushed new commits: ${{ github.event.compare }}" |
| 28 |
- name: irc issue opened |
| 29 |
uses: rectalogic/notify-irc@v1 |
| 30 |
if: github.event_name == 'issues' && github.event.action == 'opened' |
| 31 |
with: |
| 32 |
server: "irc.libera.chat" |
| 33 |
channel: "#labwc" |
| 34 |
nickname: "labwc" |
| 35 |
notice: true |
| 36 |
message: "${{ github.actor }} opened issue '${{ github.event.issue.title }}' (${{ github.event.issue.html_url }})" |
| 37 |
- name: irc issue reopened |
| 38 |
uses: rectalogic/notify-irc@v1 |
| 39 |
if: github.event_name == 'issues' && github.event.action == 'reopened' |
| 40 |
with: |
| 41 |
server: "irc.libera.chat" |
| 42 |
channel: "#labwc" |
| 43 |
nickname: "labwc" |
| 44 |
notice: true |
| 45 |
message: "${{ github.actor }} reopened issue: '${{ github.event.issue.title }}' (${{ github.event.issue.html_url }})" |
| 46 |
- name: irc issue closed |
| 47 |
uses: rectalogic/notify-irc@v1 |
| 48 |
if: github.event_name == 'issues' && github.event.action == 'closed' |
| 49 |
with: |
| 50 |
server: "irc.libera.chat" |
| 51 |
channel: "#labwc" |
| 52 |
nickname: "labwc" |
| 53 |
notice: true |
| 54 |
message: "${{ github.actor }} closed issue '${{ github.event.issue.title }}' (${{ github.event.issue.html_url }})" |
| 55 |
- name: discussion started |
| 56 |
uses: rectalogic/notify-irc@v1 |
| 57 |
if: github.event_name == 'discussion' && github.event.action == 'created' |
| 58 |
with: |
| 59 |
server: "irc.libera.chat" |
| 60 |
channel: "#labwc" |
| 61 |
nickname: "labwc" |
| 62 |
notice: true |
| 63 |
message: "${{ github.actor }} opened discussion '${{ github.event.discussion.title }}' in [${{ github.event.discussion.category.name }}] (${{ github.event.discussion.html_url }})" |
| 64 |
- name: discussion closed |
| 65 |
uses: rectalogic/notify-irc@v1 |
| 66 |
if: github.event_name == 'discussion' && github.event.action == 'closed' |
| 67 |
with: |
| 68 |
server: "irc.libera.chat" |
| 69 |
channel: "#labwc" |
| 70 |
nickname: "labwc" |
| 71 |
notice: true |
| 72 |
message: "${{ github.actor }} closed discussion '${{ github.event.discussion.title }}' in [${{ github.event.discussion.category.name }}] (${{ github.event.discussion.html_url }})" |
| 73 |
- name: discussion deleted |
| 74 |
uses: rectalogic/notify-irc@v1 |
| 75 |
if: github.event_name == 'discussion' && github.event.action == 'deleted' |
| 76 |
with: |
| 77 |
server: "irc.libera.chat" |
| 78 |
channel: "#labwc" |
| 79 |
nickname: "labwc" |
| 80 |
notice: true |
| 81 |
message: "${{ github.actor }} deleted discussion '${{ github.event.discussion.title }}' in [${{ github.event.discussion.category.name }}] (${{ github.event.discussion.html_url }})" |
| 82 |
- name: irc pull request opened |
| 83 |
uses: rectalogic/notify-irc@v1 |
| 84 |
if: github.event_name == 'pull_request' && github.event.action == 'opened' |
| 85 |
with: |
| 86 |
server: "irc.libera.chat" |
| 87 |
channel: "#labwc" |
| 88 |
nickname: "labwc" |
| 89 |
notice: true |
| 90 |
message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} opened PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 91 |
- name: irc pull request reopened |
| 92 |
uses: rectalogic/notify-irc@v1 |
| 93 |
if: github.event_name == 'pull_request' && github.event.action == 'reopened' |
| 94 |
with: |
| 95 |
server: "irc.libera.chat" |
| 96 |
channel: "#labwc" |
| 97 |
nickname: "labwc" |
| 98 |
notice: true |
| 99 |
message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} reopened PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 100 |
- name: irc pull request merged |
| 101 |
uses: rectalogic/notify-irc@v1 |
| 102 |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true |
| 103 |
with: |
| 104 |
server: "irc.libera.chat" |
| 105 |
channel: "#labwc" |
| 106 |
nickname: "labwc" |
| 107 |
notice: true |
| 108 |
message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} merged PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 109 |
- name: irc pull request closed |
| 110 |
uses: rectalogic/notify-irc@v1 |
| 111 |
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == false |
| 112 |
with: |
| 113 |
server: "irc.libera.chat" |
| 114 |
channel: "#labwc" |
| 115 |
nickname: "labwc" |
| 116 |
notice: true |
| 117 |
message: "[${{ github.event.pull_request.base.ref }}] ${{ github.actor }} closed PR '${{ github.event.pull_request.title }}' (${{ github.event.pull_request.html_url }})" |
| 118 |
- name: irc tag created |
| 119 |
uses: rectalogic/notify-irc@v1 |
| 120 |
if: github.event_name == 'create' && github.event.ref_type == 'tag' |
| 121 |
with: |
| 122 |
server: "irc.libera.chat" |
| 123 |
channel: "#labwc" |
| 124 |
nickname: "labwc" |
| 125 |
notice: true |
| 126 |
message: "${{ github.actor }} tagged ${{ github.repository }}: ${{ github.event.ref }}" |