stackdone/MS Teams Notification (Adaptive Card)
Send a rich Adaptive Card notification to Microsoft Teams via a Workflows webhook: status, jobs, commit, files, buttons.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| webhook-url | Teams 'Workflows' webhook URL (NOT the legacy Incoming Webhook connector — see README). | yes | — |
| status | Job/workflow result, e.g. success, failure, cancelled. | yes | — |
| app-name | Name shown in the card title, e.g. 'my-app'. | no | ${{ github.repository }} |
| github-token | Token used to fetch the commit message, changed files and job statuses via the GitHub REST API. Omit to skip those sections (needs 'contents: read' + 'actions: read'). | no | "" |
| include-jobs | Add a per-job status/duration breakdown: 'true', 'false', or 'on-failure' (only when status isn't success). Needs github-token. | no | true |
| run-id | Workflow run ID used to fetch run/job details. | no | ${{ github.run_id }} |
| workflow-name | Workflow name shown in the card. | no | ${{ github.workflow }} |
| repo | owner/repo, used for API + link URLs. | no | ${{ github.repository }} |
| sha | Commit SHA to look up and link to. | no | ${{ github.sha }} |
| ref-name | Branch or tag name shown in the card. | no | ${{ github.ref_name }} |
| event-name | Triggering event name shown in the card. | no | ${{ github.event_name }} |
| actor | Actor shown in the card. | no | ${{ github.actor }} |
| run-url | URL for the 'View run' button. | no | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
| commit-url | URL for the 'View commit' button. | no | ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }} |
| ref-url | URL the branch/tag name links to. | no | ${{ github.server_url }}/${{ github.repository }}/tree/${{ github.ref }} |
| pr-number | Pull request number, adds a 'View PR' button when set. | no | "" |
| max-jobs | Jobs shown up front; the rest are collapsed behind an expandable '…and N more' line. | no | 5 |
| max-files | Changed files shown up front; the rest are collapsed behind an expandable 'Show N more files' button. | no | 5 |
Outputs
no outputs