Skip to content

Commit

Permalink
ci: github: Only build docs for zephyrproject-rtos GH org
Browse files Browse the repository at this point in the history
As documentation is now built using one of our self-hosted runners,
have the GitHub action only run for the upstream repo, not for potential
forks.

Signed-off-by: Benjamin Cabé <[email protected]>
  • Loading branch information
kartben authored and nashif committed Oct 22, 2023
1 parent 1860af4 commit b1c2075
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ env:
jobs:
doc-build-html:
name: "Documentation Build (HTML)"
if: github.repository_owner == 'zephyrproject-rtos'
runs-on: zephyr-runner-linux-x64-4xlarge
timeout-minutes: 45
concurrency:
Expand Down Expand Up @@ -130,7 +131,9 @@ jobs:

doc-build-pdf:
name: "Documentation Build (PDF)"
if: github.event_name != 'pull_request'
if: |
github.event_name != 'pull_request' &&
github.repository_owner == 'zephyrproject-rtos'
runs-on: zephyr-runner-linux-x64-4xlarge
container: texlive/texlive:latest
timeout-minutes: 60
Expand Down

0 comments on commit b1c2075

Please sign in to comment.