You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
624B

  1. name: irc
  2. on: [push]
  3. jobs:
  4. notification:
  5. runs-on: ubuntu-latest
  6. name: IRC notification
  7. steps:
  8. - name: Format message
  9. run: |
  10. echo commitmessage=$(echo "${{ github.event.commits[0].message }}" | head -n 1) >> $GITHUB_ENV
  11. - name: Format message
  12. run: |
  13. echo message="${{ github.actor }} pushed ${{ env.commitmessage }} ${{ github.event.commits[0].url }}" >> $GITHUB_ENV
  14. - name: IRC notification
  15. uses: Gottox/irc-message-action@v2
  16. with:
  17. channel: '#cardinal'
  18. nickname: github-event-bot
  19. message: ${{ env.message }}