matrix-commit-message.yml 1.0 KB

12345678910111213141516171819202122232425262728
  1. on: [push]
  2. jobs:
  3. send-message:
  4. runs-on: ubuntu-latest
  5. name: Send message via Matrix
  6. steps:
  7. #- uses: zkjanus/matrix-action@main
  8. # with:
  9. # server: 'matrix.dark.fi'
  10. # room-id: '!MODZOZydPqCRdulXmR:dark.fi'
  11. # #access_token: ${{ secrets.MATRIX_TOKEN }}
  12. # status: 'OK'
  13. # user: 'narodnik'
  14. # password: ${{ secrets.MATRIX_PASSWORD }}
  15. # message: Bob the builder ${{ github.sha }}
  16. - name: Send message to test channel
  17. id: matrix-chat-message
  18. uses: fadenb/matrix-chat-message@v0.0.6
  19. with:
  20. homeserver: 'dark.fi'
  21. token: ${{ secrets.MATRIX_TOKEN }}
  22. channel: '!MODZOZydPqCRdulXmR:dark.fi'
  23. message: |
  24. This is an *example message* using **markdown** for formatting.\
  25. Use a `\` character at the end of a line to cause a linebreak (the whole message is treated as markdown).\
  26. You can use variables like ${{ github.sha }} anywhere.