github-actions

Send to teams channel

Send a message to a teams channel. Requires a Power Automate webhook url for the channel you are sending the message too.

Inputs

Example

jobs:
  main:
    ...
    permissions:
      id-token: write # Required for OIDC authentication to Azure
      ...

    steps:
    - name: Send Teams channel notification on failure
      if: failure()
      uses: DFE-Digital/github-actions/send-to-teams-channel@master
      with:
        teams-webhook-url: $
        title: Cluster smoke test
        service: My service
        status: warning
        minimal: true
        message: |
          smoke test failed for cluster $$
          Check cluster status