File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 22
33set -e
44
5- # list of *.adoc files ignoring files in /rest_api and generated files
6- FILES=$( git diff-tree HEAD HEAD ~1 --no-commit-id -r --name-only " *.adoc" ' :(exclude)rest_api/*' ' :(exclude)modules/example-content.adoc' ' :(exclude)modules/oc-adm-by-example-content.adoc' )
5+ # list of *.adoc files excluding files in /rest_api, generated files, and deleted files
6+ FILES=$( git diff --name-only HEAD~1 HEAD --diff-filter=d " *.adoc" ' :(exclude)rest_api/*' ' :(exclude)modules/example-content.adoc' ' :(exclude)modules/oc-adm-by-example-content.adoc' )
77
8- if [ -n " ${FILES} " ]
8+ if [ -n " ${FILES} " ] ;
99 then
1010 echo " Validating language usage in added or modified asciidoc files with $( vale -v) "
1111 echo " "
@@ -16,8 +16,9 @@ if [ -n "${FILES}" ]
1616 # clean out conditional markup
1717 sed -i -e ' s/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
1818 vale ${FILES} --minAlertLevel=error --glob=' *.adoc' --no-exit
19- # run again, and this time send to pipedream
19+ echo " "
2020 set -x
21+ # run again, and this time send to pipedream
2122 PR_DATA=' '
2223 if [ " $1 " == false ] ; then
2324 PR_DATA=' {"PR": [{"Number": "None", "SHA": "None"}],'
You can’t perform that action at this time.
0 commit comments