We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9047b05 commit c6e73d2Copy full SHA for c6e73d2
.github/workflows/tests.yaml
@@ -25,12 +25,13 @@ jobs:
25
- name: Check for changes in docs/ or mkdocs.yml
26
id: check_changes
27
run: |
28
- git fetch origin
29
- git diff --name-only origin/main -- > changed_files.txt
30
- if grep -qE '(^docs/|^mkdocs.yml)' changed_files.txt; then
31
- echo "changes_detected=true" >> $GITHUB_ENV
32
- else
+ if [ "$(git diff --quiet origin/master -- docs/ mkdocs.yml; echo $?)" -eq 0 ];
+ then
33
echo "changes_detected=false" >> $GITHUB_ENV
+ echo "No changes to docs/ and mkdocs.yml - exiting the build.";
+ else
+ echo "changes_detected=true" >> $GITHUB_ENV
34
+ echo "Changes detected in docs/ or mkdocs.yml - continuing the build.";
35
fi
36
37
- name: Set up Node.js
0 commit comments