GitHub Action to notify a Discord channel when someone edits the project wiki.
discord-webhook-url
: (required, string) A discord channel webhook URLignore-collaborators
: (optional, boolean, default =false
) Ignore edits made by repo collaboratorsdiscord-username
: (optional, string, default =github-actions
) The bot username for Discorddiscord-avatar-url
: (optional, string) The bot avatar url for Discord
This should be set as an Action Secret.
name: Wiki Changed Discord Notification
on:
gollum
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: 'oznu/gh-wiki-edit-discord-notification@main'
with:
discord-webhook-url: ${{ secrets.DISCORD_WEBHOOK_WIKI_EDIT }}
ignore-collaborators: true