Everything is broken down to you in simple steps. Before processing make sure the above action is whitelisted for your account.
Create an Incoming Webhook for the channel where you would like to receive notifications by right-clicking ChannelName > Connectors > Incoming WebHook > Configure.
Note: Copy The URL shown on the Bottom Page.
Add the Copied URL as a secret in the repo whose action you want this to be triggered, By going to Settings > Secrets & Variables > Actions > New Repository Secret.
Add The following code in your actions file from where you want to receive the Notification:
The most important bits are:
webhook_url (you need to get this from step 2)
overwrite: ( This defines a template of what information will be sent to the teams' channel as part of the notification) The following code will yield a teamS notification card which will have: - sections (read-only text) - potentialAction (Hyperlink to resources, which opens outside of the teams' app)
Note: You can add additional information after passing results from the Test Execution step to the Notification Step
Teams Card Notification based on the above template:
Based on the GitHub Job run status the card color gets changed to Red (failed) Green (Successful) or Yellow (canceled)
Cypress Dashboard-Microsoft Teams Notification:
Also now it is possible to directly send a Notification from Cypress Dashboard directly to your Microsoft Teams' channel when a run finishes. Cypress has built a Teams Integration that can directly push Notifications to a specified channel. There is an excellent article on how to do it :