Skip to content

Commit

Permalink
Add webhook actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruhlmann committed Jul 19, 2022
1 parent 4bd2d8c commit f7545e2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/on_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: New issue webhook
on:
issues:
types: [opened]
jobs:
send_webhook:
runs-on: ubuntu-latest
steps:
- name: Send webhook
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.WEBHOOK_URL }}
13 changes: 13 additions & 0 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: New master pull request webhook
on:
pull_request:
branches: [master]
types: [opened]
jobs:
send_webhook:
runs-on: ubuntu-latest
steps:
- name: Send webhook
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.WEBHOOK_URL }}

0 comments on commit f7545e2

Please sign in to comment.