1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

don't sed unless in ci

This commit is contained in:
aireilly
2022-09-08 08:36:27 +01:00
committed by openshift-cherrypick-robot
parent 43b7baf67b
commit 25293df5e4

View File

@@ -13,12 +13,12 @@ if [ -n "${FILES}" ] ;
echo "Read about the error terms that cause the build to fail at https://redhat-documentation.github.io/vale-at-red-hat/docs/reference-guide/termserrors/"
echo "==============================================================================================================================="
echo ""
#clean out conditional markup
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
vale ${FILES} --minAlertLevel=error --glob='*.adoc' --no-exit
echo ""
if [ "$TRAVIS" = true ] ; then
set -x
#clean out conditional markup in Travis CI
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
#run vale again, and this time send to pipedream
PR_DATA=''
if [ "$1" == false ] ; then