irc-commit-message.yml 742 B

1234567891011121314151617181920212223242526
  1. on: [push]
  2. jobs:
  3. send-message:
  4. runs-on: ubuntu-latest
  5. name: Send message via Matrix
  6. steps:
  7. - name: checkout
  8. uses: actions/checkout@v2
  9. with:
  10. fetch-depth: 0
  11. - run: |
  12. ALL_MSGS=""
  13. for i in ${{ join(github.event.commits.*.id, ' ') }}; do
  14. MSG=$(git --no-pager show -s --format='%h <b>%an</b>: %s' $i)
  15. ALL_MSGS="$ALL_MSGS$MSG<br>"
  16. done
  17. echo "::set-output name=COMMIT_MESSAGE::$ALL_MSGS"
  18. id: commit-message
  19. - uses: Gottox/irc-message-action@v2
  20. with:
  21. server: 'irc1.dark.fi'
  22. channel: '#dev'
  23. nickname: b1-66er
  24. message: '${{ steps.commit-message.outputs.COMMIT_MESSAGE }}'