diff --git a/.github/workflows/quarto-docs.yml b/.github/workflows/quarto-docs.yml index a4dfb9d76..2b74a334f 100644 --- a/.github/workflows/quarto-docs.yml +++ b/.github/workflows/quarto-docs.yml @@ -11,6 +11,9 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + # Don't run in forks, unless the forker sets a secret variable. I chose to + # use a secret rather than a var because secrets are not copied to forks. + if: github.event.repository.fork == false || secrets.ALLOW_FORK_DEPLOY == 'true' steps: - name: Check out repository uses: actions/checkout@v4