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:
committed by
openshift-cherrypick-robot
parent
be6874ddde
commit
a46492e642
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user