https://github.com/moattarwork/action.teams.sendmessage
SendMessage action to Microsoft Teams
https://github.com/moattarwork/action.teams.sendmessage
Last synced: over 1 year ago
JSON representation
SendMessage action to Microsoft Teams
- Host: GitHub
- URL: https://github.com/moattarwork/action.teams.sendmessage
- Owner: moattarwork
- License: mit
- Created: 2019-09-11T19:44:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:59:12.000Z (over 3 years ago)
- Last Synced: 2025-02-18T05:18:03.355Z (over 1 year ago)
- Language: JavaScript
- Size: 2.37 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Action - Teams: Send Message
This action can be used to send a message to a specific channel in Microsoft Teams using web hooks.
## Steps
- Add web hook support to your specific channel in Microsoft Teams. You can find the setup process [here](https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/connectors/connectors-using#setting-up-a-custom-incoming-webhook)
- Add the current action to your github workflow and setup the webhook-url and message. Here is an example:
```yaml
- name: Publish sucess to Microsoft Teams
uses: moattarwork/Action.Teams.SendMessage@V1
with:
webhook-url: ${{ secrets.TEAMS_WEBHOOK_URL }}
message: 'Build was successful for Onff project'
```
**NOTE:** You can define your secret in your repo settings > secrets and reference them here.