From 503968aa3e1eb640afd1e8266f281e777675332c Mon Sep 17 00:00:00 2001 From: CrimeMoot Date: Sat, 20 Jul 2024 13:42:40 +0500 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=BD=D0=BE=D0=B2=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/webhook-test.yml | 78 +++++++++++++++--------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/.github/workflows/webhook-test.yml b/.github/workflows/webhook-test.yml index 9cc2cceba76..c2fe0f1cdca 100644 --- a/.github/workflows/webhook-test.yml +++ b/.github/workflows/webhook-test.yml @@ -1,38 +1,40 @@ -name: Webhook Test - -on: - schedule: - - cron: '0 0 * * *' - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - test-webhook: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - fetch-depth: - - - name: Setup .NET SDK - uses: actions/setup-dotnet@v2 - with: - dotnet-version: '8.0.x' - - - name: Restore dependencies - run: dotnet restore - - - name: Build project - run: dotnet build --configuration Release --no-restore - - - name: Run tests - env: - WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} - run: dotnet test --no-restore --verbosity normal - +name: Test Ban Webhook + +on: + push: + branches: + - ban_webhook + pull_request: + branches: + - ban_webhook + schedule: + - cron: '0 0 * * *' + +jobs: + test-webhook: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v2 + with: + dotnet-version: '8.0.x' + + - name: List directory + run: ls -R + + - name: Restore dependencies + run: dotnet restore + + - name: Build project + run: dotnet build --configuration Release --no-restore + + - name: Run tests + env: + WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} + run: dotnet test --no-restore --verbosity normal