chore(): create discord notifier workflow

This commit is contained in:
sehnryr
2022-10-10 21:40:24 +02:00
commit 9fef0d33e0

16
.github/workflows/discord-notifier.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Notify github activity on discord
on:
repository_dispatch:
types: [org-workflow-bot] # <-- requirement to trigger central workflows
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@08d9328
with:
args: 'The project {{ EVENT_PAYLOAD.repository.full_name }} has been deployed.'