From 1bc8fcdcc5efc63692afdce32aa50da493a25770 Mon Sep 17 00:00:00 2001 From: narodnik Date: Sun, 7 Mar 2021 10:17:09 +0100 Subject: [PATCH] add matrix-commit-message github action --- .github/workflows/matrix-commit-message.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/matrix-commit-message.yml diff --git a/.github/workflows/matrix-commit-message.yml b/.github/workflows/matrix-commit-message.yml new file mode 100644 index 000000000..5b946318c --- /dev/null +++ b/.github/workflows/matrix-commit-message.yml @@ -0,0 +1,19 @@ +on: [push] + +jobs: + send-message: + runs-on: ubuntu-latest + name: Send message via Matrix + steps: + - name: Send message to test channel + id: matrix-chat-message + uses: fadenb/matrix-chat-message@v0.0.6 + with: + homeserver: 'dark.fi' + token: ${{ secrets.MATRIX_TOKEN }} + channel: '!MODZOZydPqCRdulXmR:dark.fi' + 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. +