From f7545e2140c10e311c8c9967d869cecb50ea622e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BChlmann?= Date: Tue, 19 Jul 2022 18:27:05 +0200 Subject: [PATCH] Add webhook actions --- .github/workflows/on_issue.yml | 12 ++++++++++++ .github/workflows/on_pull_request.yml | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/on_issue.yml create mode 100644 .github/workflows/on_pull_request.yml 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 }}