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

fix vale in the CI

undo the file change
This commit is contained in:
aireilly
2022-12-05 11:52:58 +00:00
committed by openshift-cherrypick-robot
parent be6874ddde
commit a46492e642
2 changed files with 3 additions and 2 deletions

View File

@@ -57,6 +57,7 @@ jobs:
- CAN_FAIL=true
if: type IN (pull_request)
name: "Run Vale against PR asciidoc files"
language: minimal
before_script:
- gem install asciidoctor
script:
@@ -65,7 +66,7 @@ jobs:
- export PATH=./bin:"$PATH"
- travis_retry vale sync # pull down VRH rules package
- chmod +x ./scripts/check-with-vale.sh
- travis_retry ./scripts/check-with-vale.sh $TRAVIS_PULL_REQUEST $TRAVIS_PULL_REQUEST_SHA
- ./scripts/check-with-vale.sh
# Commenting out to disable auto-merging of PRs
# - stage: automerge
# if: env(PR_AUTHOR)=openshift-cherrypick-robot

View File

@@ -15,7 +15,7 @@ if [ -n "${FILES}" ] ;
if [ "$TRAVIS" = true ] ; then
#clean out conditional markup in Travis CI
sed -i -e 's/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
vale ${FILES} --glob='*.adoc' --minAlertLevel=error --no-exit
vale ${FILES} --glob='*.adoc' --minAlertLevel=error
else
vale ${FILES} --glob='*.adoc' --minAlertLevel=suggestion
fi