|
21 | 21 | JOB_COUNT: 4 |
22 | 22 |
|
23 | 23 | jobs: |
24 | | - doc-file-check: |
25 | | - name: Check for doc changes |
26 | | - runs-on: ubuntu-24.04 |
27 | | - if: > |
28 | | - github.repository_owner == 'zephyrproject-rtos' |
29 | | - outputs: |
30 | | - file_check: ${{ steps.check-doc-files.outputs.any_modified }} |
31 | | - steps: |
32 | | - - name: checkout |
33 | | - uses: actions/checkout@v4 |
34 | | - with: |
35 | | - ref: ${{ github.event.pull_request.head.sha }} |
36 | | - fetch-depth: 0 |
37 | | - - name: Check if Documentation related files changed |
38 | | - uses: tj-actions/changed-files@v45 |
39 | | - id: check-doc-files |
40 | | - with: |
41 | | - files: | |
42 | | - doc/ |
43 | | - boards/**/doc/ |
44 | | - **.rst |
45 | | - include/ |
46 | | - kernel/include/kernel_arch_interface.h |
47 | | - lib/libc/** |
48 | | - subsys/testsuite/ztest/include/** |
49 | | - tests/ |
50 | | - **/Kconfig* |
51 | | - west.yml |
52 | | - scripts/dts/ |
53 | | - doc/requirements.txt |
54 | | - .github/workflows/doc-build.yml |
55 | | - scripts/pylib/pytest-twister-harness/src/twister_harness/device/device_adapter.py |
56 | | - scripts/pylib/pytest-twister-harness/src/twister_harness/helpers/shell.py |
57 | | -
|
58 | 24 | doc-build-html: |
59 | 25 | name: "Documentation Build (HTML)" |
60 | | - needs: [doc-file-check] |
61 | 26 | if: > |
62 | | - github.repository_owner == 'zephyrproject-rtos' && |
63 | | - ( needs.doc-file-check.outputs.file_check == 'true' || github.event_name != 'pull_request' ) |
| 27 | + github.repository_owner == 'zephyrproject-rtos' |
64 | 28 | runs-on: ubuntu-24.04 |
65 | 29 | timeout-minutes: 90 |
66 | 30 | concurrency: |
@@ -181,7 +145,6 @@ jobs: |
181 | 145 |
|
182 | 146 | doc-build-pdf: |
183 | 147 | name: "Documentation Build (PDF)" |
184 | | - needs: [doc-file-check] |
185 | 148 | if: | |
186 | 149 | github.event_name != 'pull_request' && |
187 | 150 | github.repository_owner == 'zephyrproject-rtos' |
@@ -257,7 +220,6 @@ jobs: |
257 | 220 | name: "Documentation Build Status" |
258 | 221 | needs: |
259 | 222 | - doc-build-pdf |
260 | | - - doc-file-check |
261 | 223 | - doc-build-html |
262 | 224 | uses: ./.github/workflows/ready-to-merge.yml |
263 | 225 | with: |
|
0 commit comments