Skip to content

Commit

Permalink
Don't run quarto workflow in forks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlovett committed Aug 20, 2024
1 parent fd9e5ca commit d306279
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/quarto-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d306279

Please sign in to comment.