diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 323b06d3ec..a577039083 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,10 +19,10 @@ permissions: contents: read jobs: - # The test-build job will run regardless of whether the PR branch is from ESCOMP/CTSM or a fork. + # The test-build job will run only if the PR branch is from a fork, not ESCOMP/CTSM. test-build: - if: ${{ always() }} + if: github.event.pull_request.head.repo.full_name != github.repository name: Test building documentation runs-on: ubuntu-latest steps: