diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2e0c76..b204616 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,7 @@ jobs: - name: Build run: dotnet build - name: Test + if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }} env: AKISMET_API_KEY: ${{ secrets.AKISMET_API_KEY }} AKISMET_API_KEY_URL: ${{ vars.AKISMET_API_KEY_URL }}