- You must specify your Slack or Discord token in your Repo secrets, and also a Slack channel.
- This is template to use:
name: 'Send Notifications'
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send Notification to slack
uses: AngelVDev/[email protected]
with:
githubToken: ${{ secrets.YOUR_GITHUB_TOKEN }}
messageType: 'slack'
slackToken: ${{ secrets.YOUR_SLACK_API_TOKEN }}
slackChannel: ${{ secrets.YOUR_SLACK_CHANNEL}}
- name: Send notification to Discord
uses: AngelVDev/[email protected]
if: always()
with:
githubToken: ${{ secrets.YOUR_GITHUB_TOKEN }}
messageType: 'discord'
discordWebhookUrl: ${{ secrets.YOUR_DISCORD_WEBHOOK_URL }}