Skip to content

Commit cdbea09

Browse files
authored
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.
1 parent 1cb794e commit cdbea09

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ concurrency:
2626
jobs:
2727
# Build job
2828
build:
29+
if: github.repository == 'github/spec-kit'
2930
runs-on: ubuntu-latest
3031
steps:
3132
- name: Checkout
@@ -56,6 +57,7 @@ jobs:
5657

5758
# Deploy job
5859
deploy:
60+
if: github.repository == 'github/spec-kit'
5961
environment:
6062
name: github-pages
6163
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)