Releases: processone/xmpp-notifier
Releases · processone/xmpp-notifier
XMPP Notifier
XMPP Notifier
First release of the xmpp-notifier.
This action lets you send a message to either an xmpp client or in a chat room as specified by XEP-0045 (MUC).
Messages are configurable directly in the workflow.
Uses the go-xmpp library
Example workflow : send notification on test failure on a pull-request to master for a go project
on:
pull_request:
branches:
- master
jobs:
notif-script:
runs-on: ubuntu-latest
name: job that pushes test failures to xmpp
steps:
- name: Run tests
run: |
go test ./... -v -race
- name: Tests failed notif
if: failure()
id: test_fail_notif
uses: processone/xmpp-notifier@master
with: # Set the secrets as inputs
# Login expects the bot's bare jid (user@domain)
jid: ${{ secrets.jid }}
password: ${{ secrets.password }}
server_host: ${{ secrets.server_host }}
# The intended recipient of the notification such as a xmpp room or a single user. Bare JID is expected
recipient: ${{ secrets.recipient }}
# Port is optional. Defaults to 5222
server_port: ${{ secrets.server_port }}
message: |
tests for the following PR have failed : ${{ github.event.pull_request.html_url }}
# Boolean to indicate if correspondent should be treated as a room (true) or a single user
recipient_is_room: true