This action allows sending messages to Microsoft Teams Teams.
After changing the action's code, the action must be rebuilt and packaged via yarn all
and the changes in the dist
folder must be commited.
Create a workflow .yml
file in your repositories .github/workflows
directory. An example workflow is available below. For more information, reference the GitHub Help Documentation for Creating a workflow file.
title
- Title of the message (optional)body
- Markddown body of the message. Eitherbody
orjson-content
must be provided.json-content
- The message as JSON. Eitherbody
orjson-content
must be provided.webhook
- Webhook of the Team
name: Sending Messages
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Send Message
id: send-message
uses: meisterplan/actions-msteams@v2
with:
title: Hello # optional
color: '#01A6F0' #optional
body: |
This is a test message
with *markdown*
and multiple lines
webhook: ${{ secrets.MY_SECRET_WEBHOOK_URL }}