diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5f4fc4b47..07f26940d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: "3.10" - uses: pre-commit/action@v3.0.1 # ubc: @@ -78,7 +78,7 @@ jobs: - name: Create coverage run: coverage xml - name: Upload to Codecov - if: github.event.pull_request.head.repo.full_name == github.repository && github.repository == 'useblocks/sphinx-needs' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.14' + if: github.repository == "useblocks/sphinx-needs" && matrix.os == "ubuntu-latest" && matrix.python-version == "3.14" && (github.event_name == "push" || github.event.pull_request.head.repo.full_name == github.repository) uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -146,7 +146,6 @@ jobs: working-directory: docs check: - # This job does nothing and is only used for the branch protection # see https://github.com/marketplace/actions/alls-green#why