Skip to content
truck

GitHub Action

opsless/ms-teams-github-actions

1.2.1 Latest version

opsless/ms-teams-github-actions

truck

opsless/ms-teams-github-actions

Microsoft Teams Github Actions integration

Installation

Copy and paste the following snippet into your .yml file.

              

- name: opsless/ms-teams-github-actions

uses: opsless/[email protected]

Learn more about this action in opsless/ms-teams-github-actions

Choose a version

MS Team Github Actions integration

Usage

  1. Add MS_TEAMS_WEBHOOK_URI on your repository's configs on Settings > Secrets. It is the webhook URI of the dedicated Microsoft Teams channel for notification.
  1. Add a new step on your workflow code as last step of workflow job:
name: MS Teams Github Actions integration

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
      - uses: opsless/ms-teams-github-actions@main
        if: always() # to let this step always run even if previous step failed
        with:
          github-token: ${{ github.token }}
          webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}

Known Issues

  • Always set this step with if: always() when there are steps between actions/checkout@v2 and this step.

Roadmap

  • add error message if workflow failed
  • add files changed list
  • add workflow run duration

Feel free to create issue if you have an idea in mind