Skip to content

Commit df040f1

Browse files
ci: only attempt to deploy the built documentation in the upstream repo
Only attempt to deploy the documentation when running in the zephyrproject-rtos/example-application repository. This avoid deployment failure for downstream forks with CI enabled. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 17b35b9 commit df040f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
deploy:
5353
runs-on: ubuntu-22.04
5454
needs: build
55-
if: github.event_name != 'pull_request'
55+
if: |
56+
github.event_name != 'pull_request' &&
57+
github.repository == 'zephyrproject-rtos/example-application'
5658
permissions:
5759
pages: write
5860
id-token: write

0 commit comments

Comments
 (0)