Skip to content
alert-circle

GitHub Action

Github Wiki notifications for Teams

v1.1 Latest version

Github Wiki notifications for Teams

alert-circle

Github Wiki notifications for Teams

Take a payload of gollum (Github wiki) event and send a formatted notification to a specified Microsoft Teams channel

Installation

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

              

- name: Github Wiki notifications for Teams

uses: sgefdf/[email protected]

Learn more about this action in sgefdf/action-teams-gollum-notification

Choose a version

action-teams-gollum-notification

Description

This action takes a payload of a gollum (Github wiki) event and sends a notification in form of Office 365 Connector Card to a specified Microsoft Teams channel via a webhook. As Github extension for Microsoft Teams doesn't support gollum event notifications, this is a simple and convenient solution to get notified on updates (create, edit) in your repository's wiki pages.

Card example 1

Required environment variables

  • WEBHOOK_URL A webhook URL to a Teams channel you want notifications to be sent to. How to get the URL?

Usage

on: [gollum]

jobs:
  wiki_teams_notification:
    runs-on: ubuntu-latest
    name: Wiki Teams notification
    steps:
    - uses: actions/checkout@v2
      name: Checkout
    - uses: ./.github/actions
      name: Send notification
      env:
        # A webhook URL to a Teams channel you want notifications to be sent to.
        WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}