Skip to content
This is a GitHub Actions that sends a message to a given channel in Microsoft Teams
C# Dockerfile Shell
Use this GitHub Action with your project

Add this Action to an existing workflow or create a new one.

View on Marketplace
Branch: dev
Clone or download

README.md

Microsoft Teams Actions

This is a GitHub Actions that sends a message to a given channel in Microsoft Teams, with the most generic way.

Inputs

  • webhook-uri (Required): Incoming webhook URI to Microsoft Teams
  • title (Optional): Message title
  • summary (Required): Message summary
  • text (Optional): Message text
  • theme-color (Optional): Message theme color
  • sections (Optional): JSON array for message sections
  • actions (Optional): JSON array for message actions

Outputs

  • message: Message sent to Microsoft Teams

Example Usage

steps:
  name: Send a message to Microsoft Teams
  uses: aliencube/microsoft-teams-actions@v0.8.0
  with:
    webhook-uri: https://outlook.office.com/webhook/<GUID>/IncomingWebhook/<GUID>
    title: <Message Title>
    summary: <Message Summary>
    text: <Message Text>
    theme-color: <Message Theme Color>
    sections: '[{ "activityTitle": "hello world" }, { ... }]'
    actions: '[{ "@type": "OpenUri", "name": "lorem ipsum", "targets": [{ "os": "default", "uri": "https://localhost" }] }, { ... }]'

For more details about sections and actions: https://docs.microsoft.com/outlook/actionable-messages/message-card-reference

Contribution

Your contributions are always welcome! All your work should be done in your forked repository. Once you finish your work with corresponding tests, please send us a pull request onto our dev branch for review.

License

Microsoft Teams Actions is released under MIT License

The MIT License (MIT)

Copyright (c) 2020 aliencube.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

You can’t perform that action at this time.