Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.94 KB

README.md

File metadata and controls

58 lines (38 loc) · 1.94 KB

Simple Teams Message

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.

Examples

Simple message

With image and extra text blocks

How to use in your GitHub workflow

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

How to configure the workflow in MS Teams

  1. Go to workflow menu

workflow

  1. Create a new workflow
  2. Use: "Post to a channel when a webhook request is received"
  3. Add workflow
  4. Go to workflow menu
  5. Edit the workflow

edit

  1. Change the user Post as to User, Post in to Channel, and select a valid Team and Channel

edit-workflow

  1. Success! Your workflow is now ready to receive messages from GitHub