Skip to content

matrix-message

Actions
Send a message to a matrix channel
v0.0.3
Latest
Star (22)

Tags

 (2)

Matrix Message github action

This is a simple github action to send messages to matrix servers.

Usage

Sending messages requires generating of an access token, which can be done with curl, and is detailed here.

The Room ID does not refer to the room's name, but its unique ID. In Riot, this can be found by navigating to 'Room Settings' -> 'Advanced'.

Markdown-formatted messages are supported.

name: Send a hello world to matrix every 5 minutes
on:
  schedule:
    - cron: '*/5 * * * *'
jobs:
  ping_matrix:
   runs-on: ubuntu-latest
   steps:
     - name: send message
       uses: s3krit/matrix-message-action@v0.0.3
       with:
         room_id: ${{ secrets.MATRIX_ROOM_ID }}
         access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
         message: "Hello, world"
         server: "matrix.org"

matrix-message is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Send a message to a matrix channel
v0.0.3
Latest

Tags

 (2)

matrix-message is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.