matrix-commit-message.yml 1.0 KB

123456789101112131415161718192021222324252627
  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. user: 'narodnik'
  13. password: ${{ secrets.MATRIX_PASSWORD }}
  14. message: Bob the builder {{ github.sha }}
  15. #- name: Send message to test channel
  16. # id: matrix-chat-message
  17. # uses: fadenb/matrix-chat-message@v0.0.6
  18. # with:
  19. # homeserver: 'dark.fi'
  20. # token: ${{ secrets.MATRIX_TOKEN }}
  21. # channel: '!MODZOZydPqCRdulXmR:dark.fi'
  22. # message: |
  23. # This is an *example message* using **markdown** for formatting.\
  24. # Use a `\` character at the end of a line to cause a linebreak (the whole message is treated as markdown).\
  25. # You can use variables like ${{ github.sha }} anywhere.