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