Skip to content

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.

License

Notifications You must be signed in to change notification settings

tlolkema/simple-teams-message

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published