Skip to content

Commit ec7b82d

Browse files
Merge pull request #1273 from PatKamin/move-docsbuild
[CI] Run DocsBuild only when needed
2 parents b3fd6d0 + e8eafe1 commit ec7b82d

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

.github/workflows/docs_pr_push.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow is strictly for documentation updates. It triggers only when files related
2+
# to documentation or specific workflows are edited, ensuring that the job runs only for
3+
# relevant changes.
4+
5+
name: Documentation PR/push
6+
7+
on:
8+
push:
9+
branches-ignore:
10+
- 'dependabot/**'
11+
- 'main' # Ignore main branch as it's handled by docs.yml
12+
paths:
13+
- 'docs/**'
14+
- 'include/**'
15+
- .github/workflows/reusable_docs_build.yml
16+
- .github/workflows/docs_pr_push.yml
17+
- 'third_party/requirements.txt'
18+
19+
pull_request:
20+
paths:
21+
- 'docs/**'
22+
- 'include/**'
23+
- .github/workflows/reusable_docs_build.yml
24+
- .github/workflows/docs_pr_push.yml
25+
- 'third_party/requirements.txt'
26+
27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
29+
cancel-in-progress: true
30+
31+
permissions:
32+
contents: read
33+
34+
jobs:
35+
DocsBuild:
36+
uses: ./.github/workflows/reusable_docs_build.yml

.github/workflows/pr_push.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ permissions:
1818
jobs:
1919
CodeChecks:
2020
uses: ./.github/workflows/reusable_checks.yml
21-
DocsBuild:
22-
uses: ./.github/workflows/reusable_docs_build.yml
2321
FastBuild:
2422
name: Fast builds
25-
needs: [CodeChecks, DocsBuild]
23+
needs: [CodeChecks]
2624
uses: ./.github/workflows/reusable_fast.yml
2725
Build:
2826
name: Basic builds

0 commit comments

Comments
 (0)