We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb67936 commit f59f64cCopy full SHA for f59f64c
.github/workflows/deploy-docs.yml
@@ -71,10 +71,11 @@ jobs:
71
docs-repo
72
cd docs-repo
73
git status
74
- git_changes=$(if [[ -n "$(git status --porcelain)" ]]; then echo '1'; else echo '0'; fi)
+ git_changes=$(git status --porcelain | grep --invert-match --regexp=' sitemap.xml$' --regexp=' search-index.js$' | wc -l)
75
+ echo "Detected $git_changes change(s)"
76
echo "git_changes=$git_changes" >> "$GITHUB_OUTPUT"
77
- name: Push to docs.junit.org repo
- if: env.DEPLOY == 'true' && steps.antora_copy.outputs.git_changes == '1'
78
+ if: env.DEPLOY == 'true' && steps.antora_copy.outputs.git_changes > 0
79
working-directory: docs-repo
80
run: |
81
git config --global user.name "JUnit Team"
0 commit comments