Skip to content

This workflow can be used to send teams notification to teams channel

Notifications You must be signed in to change notification settings

vinayaja/teams-notification

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

Repository files navigation

Send Teams notification

Simple GitHub Action to send teams notification to channel using cloudflow template 'Post to a channel when a webhook request is received'

please follow below link for more details around creation of incoming webhook for teams channel

Please note that variable substitution is case sensitive, please try to store tokens in uppercase in Tokenized files.

Inputs

  • gh-token - Github Token or Pat Token (Required)
  • notification-summary - Summary of Notification eg. 'Deployment started on Dev environment v10.2.6' (Required)
  • msTeams-webhook-uri - webhook uri of teams channel (Required)
  • notification-colour - Notification colour, good for successful, attention for failure, accent for information (Required)
  • notification-type - deployment or information notification (Required)

Example

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    
    steps:
    - name: 'Checkout Github Action' 
      uses: actions/checkout@4

    - uses: vinayaja/[email protected]
      with:
        gh-token: ${{ github.token }}
        notification-summary: "Deployment test"
        msTeams-webhook-uri: ${{ secrets.TEAMS_WEBHOOK }}
        notification-colour: 'good'
        notification-type: 'deployment'

About

This workflow can be used to send teams notification to teams channel

Resources

Stars

Watchers

Forks

Packages

No packages published