The goal of this action is to produce helpful messages on your Discord server based on GitHub events.
- Release
- Pull Request
- Push (branches / tags)
- Page build
The webhook URL to use. This should be in a repository secret and the secret should be included here using ${{ secrets.DISCORD_WEBHOOK }}
. For security reasons it is not possible to default this to the secret name, so it must be supplied in every action invocation.
Handler defines background logic of the action. Currently avaiable handlers:
release
: Publishes message to your discord server when release is created.push
: Publishes message to your discord server when push action occurs.
name: Discord Webhook Messages
on:
release:
types: [published]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Discord Webhook
uses: bythope/[email protected]
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
handler: 'release'
name: Discord Webhook Messages
on:
push:
branches:
- '*'
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Discord Webhook
uses: bythope/[email protected]
with:
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
handler: 'push'
- Read CONTRIBUTING guide
- Make the changes
- Read Pull request guide
- Create issue for an idea
- Explain your needs