-
-
Notifications
You must be signed in to change notification settings - Fork 202
21 lines (19 loc) · 638 Bytes
/
irc.yml
File metadata and controls
21 lines (19 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: irc
on: [push, pull_request]
jobs:
notification:
runs-on: ubuntu-latest
name: IRC notification
steps:
- name: Format message
run: |
echo commitmessage=$(echo "${{ github.event.commits[0].message }}" | head -n 1) >> $GITHUB_ENV
- name: Format message
run: |
echo message="${{ github.actor }} pushed ${{ env.commitmessage }} ${{ github.event.commits[0].url }}" >> $GITHUB_ENV
- name: IRC notification
uses: Gottox/irc-message-action@v2
with:
channel: '#cardinal'
nickname: github-event-bot
message: ${{ env.message }}