matrix-commit-message.yml 1.2 KB

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