Skip to content
message-square

GitHub Action

mattermost-notification

v0.1.2-beta Pre-release

mattermost-notification

message-square

mattermost-notification

Send Message to Mattermost channel

Installation

Copy and paste the following snippet into your .yml file.

              

- name: mattermost-notification

uses: komarnitskyi/[email protected]

Learn more about this action in komarnitskyi/action-mattermost-notification

Choose a version

Mattermost Notification Action

This action allows you to send messages to your Mattermost.

Parameters

Param Description
webhook (required) Webhook URI
text (required) Message body (Markdown allowed)
channel Channel message will be posted in or username to send DM (Leave empty for hook-default)
username Sender name (leave empty to use hook-default)
json For fully custom payload. ALL other params will be ignored (even text)
icon_url Sender icon url
icon_emoji Sender emoji

Usage example

    ...
    steps:
      - uses: komarnitskyi/[email protected]
        with:
          webhook: ${{secrets.MATTERMOST_WEBHOOK}}
          text: "Application successfully deployed"
          username: 'appbot'

Check the Mattermost documentation for more information regarding hooks