summaryrefslogtreecommitdiff
path: root/.github/workflows/irc.yml
blob: d248c616f659f2bf569994eb1bfd1a1b6dccfc50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: irc

on: [push]

jobs:
  notification:
    runs-on: ubuntu-latest
    name: IRC notification
    steps:
      - name: Format message
        id: message
        run: |
          message="${{ github.actor }} pushed $(echo '${{ github.event.commits[0].message }}' | head -n 1) ${{ github.event.commits[0].url }}"
          echo ::set-output name=message::"${message}"
      - name: IRC notification
        uses: Gottox/irc-message-action@v2
        with:
          channel: '#jack'
          nickname: jackaudio-bot
          message: ${{ steps.message.outputs.message }}