Skip to content

Commit b4da044

Browse files
ci: Enable running doc-preview workflow on changes in samples
Tigger doc-build workflows on changes in README.rst files in samples. Signed-off-by: Arkadiusz Balys <arkadiusz.balys@nordicsemi.no>
1 parent 7ae6aab commit b4da044

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/actions/get-changed-docs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ runs:
4040
HEAD_SHA: ${{ inputs.head_sha }}
4141
run: |
4242
# Get list of changed .rst and .md files in docs/
43-
changed_files=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" -- 'docs/*.rst' 'docs/*.md' 'docs/**/*.rst' 'docs/**/*.md' | head -20)
43+
changed_files=$(git diff --name-only "$BASE_SHA" "$HEAD_SHA" -- 'docs/*.rst' 'docs/*.md' 'docs/**/*.rst' 'docs/**/*.md' 'samples/**/*.rst' | head -20)
4444
echo "Changed documentation files:"
4545
echo "$changed_files"
4646

.github/workflows/docbuild.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- main
77
paths:
88
- 'docs/**'
9-
- '.github/workflows/docbuild.yml'
9+
- '.github/workflows/doc*'
10+
- 'samples/**/*.rst'
1011

1112
permissions:
1213
contents: read

docs/requirements-doc.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ sphinxcontrib-qthelp==1.0.3
2626
sphinxcontrib-serializinghtml==1.1.5
2727

2828
# Jinja2 compatibility for Sphinx 4.x
29-
Jinja2<3.1
29+
Jinja2>=3.1.6
3030
MarkupSafe>=2.0.0,<2.2.0
3131

3232
# Other dependencies

0 commit comments

Comments
 (0)