From e87ea7dc103ddd86b96fd79a7bb3c34be4c8be43 Mon Sep 17 00:00:00 2001 From: SolDev69 <40839581+SolDev69@users.noreply.github.com> Date: Wed, 10 May 2023 12:20:35 -0400 Subject: [PATCH] Create discord-webhook.yml --- .github/workflows/discord-webhook.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/discord-webhook.yml diff --git a/.github/workflows/discord-webhook.yml b/.github/workflows/discord-webhook.yml new file mode 100644 index 0000000..4e55e93 --- /dev/null +++ b/.github/workflows/discord-webhook.yml @@ -0,0 +1,19 @@ +name: Send Discord webhook on push + +on: + push: + branches: + - main # Replace with the name of your branch + +jobs: + send-webhook: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Send Discord webhook + uses: distributhor/discord-webhook-action@v1 + with: + url: ${{ secrets.DISCORD_WEBHOOK_URL }} + payload: '{"content": "New commit pushed to repository"}'