.github/workflows: try to make irc notifications more useful
This commit is contained in:
parent
483ce39e1e
commit
1e504671ce
1 changed files with 25 additions and 9 deletions
34
.github/workflows/notify-irc.yaml
vendored
34
.github/workflows/notify-irc.yaml
vendored
|
@ -1,5 +1,11 @@
|
|||
name: "Push Notification"
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
types: [opened, closed]
|
||||
issues:
|
||||
types: [opened, closed]
|
||||
|
||||
jobs:
|
||||
ircnotify:
|
||||
|
@ -9,19 +15,29 @@ jobs:
|
|||
uses: rectalogic/notify-irc@v1
|
||||
if: github.event_name == 'push' && github.repository == 'void-linux/void-packages'
|
||||
with:
|
||||
#notice: true
|
||||
notice: true
|
||||
channel: "#xbps"
|
||||
nickname: void-packages
|
||||
message: |-
|
||||
${{ github.actor }} pushed to ${{ github.event.ref }}
|
||||
>>> ${{ github.event.compare }}
|
||||
tls: true
|
||||
message: |
|
||||
${{ github.actor }} pushed ${{ github.event.compare }}
|
||||
- name: irc pull request
|
||||
uses: rectalogic/notify-irc@v1
|
||||
if: github.event_name == 'pull_request' && github.repository == 'void-linux/void-packages'
|
||||
with:
|
||||
#notice: true
|
||||
notice: true
|
||||
channel: "#xbps"
|
||||
nickname: void-packages
|
||||
message: |-
|
||||
${{ github.actor }} opened PR
|
||||
>>> ${{ github.event.html_url }}
|
||||
tls: true
|
||||
message: |
|
||||
${{ github.actor }} ${{ github.event.action }} pull request #${{ github.event.pull_request.html_url }}“ ${{ github.event.pull_request.number }}”
|
||||
- name: irc issue
|
||||
uses: rectalogic/notify-irc@v1
|
||||
if: github.event_name == 'issues' && github.repository == 'void-linux/void-packages'
|
||||
with:
|
||||
notice: true
|
||||
channel: "#xbps"
|
||||
nickname: void-packages
|
||||
tls: true
|
||||
message: |
|
||||
${{ github.actor }} ${{ github.event.action }} issue #${{ github.event.issue.number }} “${{ github.event.issue.html_url }}”
|
||||
|
|
Loading…
Reference in a new issue