fix: skip docs deployment workflow on forks (#2171)

Add repository check to build and deploy jobs so they skip
with success on forks, avoiding failed Pages deployments for
contributors.
This commit is contained in:
Manfred Riem
2026-04-10 17:57:47 -05:00
committed by GitHub
parent 1cb794e516
commit cdbea09e1a

View File

@@ -26,6 +26,7 @@ concurrency:
jobs:
# Build job
build:
if: github.repository == 'github/spec-kit'
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -56,6 +57,7 @@ jobs:
# Deploy job
deploy:
if: github.repository == 'github/spec-kit'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}