Prevent deployment of docs on forked repositories

Add condition to prevent deployment of docs on forked repositories
This commit is contained in:
Wendy Smoak 2026-01-11 20:20:38 -05:00 committed by GitHub
parent c18904d674
commit 7029f23da9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -52,6 +52,8 @@ jobs:
path: build/site
deploy:
# Don't run on forked repositories
if: github.event.repository.fork != true
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}