Fix CI failure when no rule was changed (#791)

This commit is contained in:
Fred Tingaud 2022-02-08 11:00:03 +01:00 committed by GitHub
parent 2e7f232913
commit fc959bf040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ done
ADOC_COUNT=$(find rules -name "tmp*.adoc" | wc -l)
if [[ $ADOC_COUNT ]]; then
if (( ADOC_COUNT > 0 )); then
if asciidoctor --failure-level=WARNING -o /dev/null rules/*/*/tmp*.adoc; then
if asciidoctor -a rspecator-view --failure-level=WARNING -o /dev/null rules/*/*/tmp*.adoc; then
echo "${ADOC_COUNT} documents checked with succes"