diff --git a/.github/workflows/on_issue.yml b/.github/workflows/on_issue.yml new file mode 100644 index 0000000000..1a53f98c65 --- /dev/null +++ b/.github/workflows/on_issue.yml @@ -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 }} diff --git a/.github/workflows/on_pull_request.yml b/.github/workflows/on_pull_request.yml new file mode 100644 index 0000000000..3cd3bd0160 --- /dev/null +++ b/.github/workflows/on_pull_request.yml @@ -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 }}