GitHub Action – Project Wiki Edit Discord Notifications

GitHub Action to notify a Discord channel when someone edits the project wiki.

image

Inputs

  • discord-webhook-url: (required, string) A discord channel webhook URL
  • ignore-collaborators: (optional, boolean, default = false) Ignore edits made by repo collaborators
  • discord-username: (optional, string, default = github-actions) The bot username for Discord
  • discord-avatar-url: (optional, string) The bot avatar url for Discord

Discord Webook URL

This should be set as an Action Secret.

Example usage

name: Wiki Changed Discord Notification

on:
  gollum

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - uses: 'oznu/[email protected]'
        with:
          discord-webhook-url: ${{ secrets.DISCORD_WEBHOOK_WIKI_EDIT }}
          ignore-collaborators: true

GitHub

View Github