diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 0000000000..8ff49f5f58 --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,20 @@ +name: Discord Notifications + +on: + issues: + types: [opened] + pull_request: + types: [opened, merged] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - uses: Ilshidur/action-discord@master + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + with: + args: > + New **${{ github.event_name }}**: + [#${{ github.event.issue.number || github.event.pull_request.number }} - ${{ github.event.issue.title || github.event.pull_request.title }}](${{ github.event.issue.html_url || github.event.pull_request.html_url }}) + by **${{ github.actor }}** \ No newline at end of file