diff --git a/.github/workflows/on-commit.yml b/.github/workflows/on-commit.yml index c67ff20e..2d26a73d 100644 --- a/.github/workflows/on-commit.yml +++ b/.github/workflows/on-commit.yml @@ -23,6 +23,7 @@ jobs: Test-Sphinx: runs-on: ubuntu-latest if: | + github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'refs/heads/main' steps: - uses: actions/checkout@v3