Skip to content

Commit aa8ad4d

Browse files
committed
Trigger the docs deploy job only when GH_PAGES_DEPLOY secret is set.
This is to avoid a forked repo triggering this job which is deemed to fail.
1 parent cb7aff4 commit aa8ad4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main]
66
paths:
77
- docs/**
8+
- **/*.yml
89
push:
910
branches: [main]
1011
paths:
@@ -38,7 +39,7 @@ jobs:
3839
run: yarn build
3940

4041
deploy:
41-
if: github.event_name != 'pull_request'
42+
if: ${{ github.event_name != 'pull_request' && github.secrets.GH_PAGES_DEPLOY != '' }}
4243
runs-on: ubuntu-latest
4344
steps:
4445
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)