Update README.md with markdown example

This commit is contained in:
Tristan Helmich 2020-10-06 22:52:15 +00:00
parent 2fc1ac679c
commit 99eab830d2

View File

@ -64,12 +64,16 @@ jobs:
steps: steps:
- name: Send message to test channel - name: Send message to test channel
id: matrix-chat-message id: matrix-chat-message
uses: fadenb/matrix-chat-message@v0.0.2 uses: fadenb/matrix-chat-message@v0.0.6
with: with:
homeserver: 'matrix.org' homeserver: 'matrix.org'
token: ${{ secrets.MATRIX_TOKEN }} token: ${{ secrets.MATRIX_TOKEN }}
channel: '<INSERT YOUR ROOM ID HERE>' channel: '<INSERT YOUR ROOM ID HERE>'
message: 'This is an example message. It even supports the use of variables like ${{ github.sha }}' message: |
This is an *example message* using **markdown** for formatting.\
Use a `\` character at the end of a line to cause a linebreak (the whole message is treated as markdown).\
You can use variables like ${{ github.sha }} anywhere.
``` ```
* Replace matrix.org with the address of your server. * Replace matrix.org with the address of your server.