[ci] skip doc jobs - circleCI is not reliable - disable skip for now (#8926)

* disable skipping, but leave logging for the future
This commit is contained in:
Stas Bekman
2020-12-04 10:13:42 -08:00
committed by GitHub
parent 71688a8889
commit 73c51f7fcd

View File

@@ -14,12 +14,14 @@ commands:
# pipeline.git.base_revision is not always defined, so only proceed if all external vars are defined # pipeline.git.base_revision is not always defined, so only proceed if all external vars are defined
if test -n "<< pipeline.git.base_revision >>" && test -n "<< pipeline.git.revision >>" && test -n "$(git diff --name-only << pipeline.git.base_revision >>...<< pipeline.git.revision >>)" if test -n "<< pipeline.git.base_revision >>" && test -n "<< pipeline.git.revision >>" && test -n "$(git diff --name-only << pipeline.git.base_revision >>...<< pipeline.git.revision >>)"
then then
git diff --name-only << pipeline.git.base_revision >>...<< pipeline.git.revision >>
if git diff --name-only << pipeline.git.base_revision >>...<< pipeline.git.revision >> | egrep -qv '\.(md|rst)$' if git diff --name-only << pipeline.git.base_revision >>...<< pipeline.git.revision >> | egrep -qv '\.(md|rst)$'
then then
echo "Non-docs were modified in this PR, proceeding normally" echo "Non-docs were modified in this PR, proceeding normally"
else else
echo "Only docs were modified in this PR, quitting this job" echo "Only docs were modified in this PR, quitting this job"
circleci step halt # disable skipping for now, as circleCI's base_revision is inconsistent leading to invalid ranges
# circleci step halt
fi fi
else else
echo "Can't perform skipping check w/o base_revision defined, continuing the job" echo "Can't perform skipping check w/o base_revision defined, continuing the job"