Microsoft Teams phased out the incoming Office365 webhook connector. This action allows you to send a message to a Teams channel using the new workflows process.
Simple message
With image and extra text blocks
Add the following to your workflow file:
- uses: tlolkema/simple-teams-message@main
with:
message_title: "Test Message"
message_description: "Test"
webhook: ${{ secrets.TEAMS_WEBHOOK }}
# Optional parameters
image_url: "https://example.com/path/to/your/image.jpg"
extra_text_blocks: "This is an extra block|||This is another extra block"
Field | Description | Required |
---|---|---|
message_title | Title of the message | Yes |
message_description | Description of the message | Yes |
webhook | Webhook URL for the Teams channel | Yes |
image_url | URL of the image to include (optional) | No |
extra_text_blocks | Additional text blocks to include, separated by ||| (optional) | No |
- Go to workflow menu
- Create a new workflow
- Use:
"Post to a channel when a webhook request is received"
- Add workflow
- Go to workflow menu
- Edit the workflow
- Change the user
Post as
to User,Post in
to Channel, and select a valid Team and Channel
- Success! Your workflow is now ready to receive messages from GitHub