Skip to content

Commit

Permalink
Always return 0 from doc build check
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynvs-msft committed Feb 18, 2020
1 parent 8816efe commit 43142e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build/doc-only-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ DOCS_REGEX='(LICENSE|netlify.toml)|(\.md$)|(^docs/)|(^.github/)|(^.workshop/)'
if [[ -z "$(git diff --name-only HEAD HEAD~ | grep -vE $DOCS_REGEX)" ]]; then
echo "This is a doc-only build"
echo "##vso[task.setvariable variable=DOCS_ONLY;isOutput=true]true"
exit 1
else
echo "A full build must be run, code has been changed"
echo "##vso[task.setvariable variable=DOCS_ONLY;isOutput=true]false"
exit 0
fi

0 comments on commit 43142e1

Please sign in to comment.