Skip to content
No description, website, or topics provided.
Shell Dockerfile
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
README.md
action.yml
entrypoint.sh

README.md

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'.

formatted_message is optional, and accepts Matrix HTML-formatted message. If it is not specified, only the message argument will be sent.

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.1
       with:
         room_id: ${{ secrets.MATRIX_ROOM_ID }}
         access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
         message: "Hello, world"
         formatted_message: "<strong>Hello</strong><br /><em>world!</em>"
         server: "matrix.org"
You can’t perform that action at this time.