matrix-commit-message.yml 964 B

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