You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
IRC Message Action
v1.3.1
This action prints a message to a given IRC Channel. Optionally it waits for a response from a given user
The hostname of the IRC server default: 'chat.freenode.net' required: true
The port number of the IRC server default: 6697 required: true
Required IRC channel that will receive the messages
IRC channel password
Required IRC nickname
IRC SASL password
Required Message to send
Use NOTICE instead of PRIVMSG
default: false
Use TLS to connect to the IRC server
default: true
Comma seperated list of authenticated accounts allowed to response to an action
Timeout to wait for a response in seconds
default: 60
Enables verbose output.
default: false
nickname of the responding user
Response written from an authenticated user
on: [push]
jobs:
notification:
runs-on: ubuntu-latest
name: Notifications
steps:
- name: IRC notification
uses: Gottox/irc-message-action@v1
with:
channel: '##mychannel'
nickname: mynickname
message: |-
${{ github.actor }} pushed ${{ github.event.ref }} ${{ github.event.compare }}
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy Chain
steps:
- name: Acknowledge
id: acknowledge
uses: Gottox/irc-message-action@v1
with:
channel: '##mychannel'
nickname: mynickname
response_allow_from: Operator1, Operator2, Operator3
# 5 hours:
response_timeout: 18000
message: |-
${{ github.actor }} pushed something: ${{ github.event.compare }}
Please acknowledge with "ok"!
# An Acknowledger can reply to this with "mynickname: ok"
- name: Print Acknowledger
run: echo "${{ steps.response.outputs.response_from }}"
- name: Check Acknowledge
run: test "${{ steps.response.outputs.response }}" = "ok"
- name: Deploy
run: ./deploy.sh