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 2
2
3
3
set -e
4
4
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' )
7
7
8
- if [ -n " ${FILES} " ]
8
+ if [ -n " ${FILES} " ] ;
9
9
then
10
10
echo " Validating language usage in added or modified asciidoc files with $( vale -v) "
11
11
echo " "
@@ -16,8 +16,9 @@ if [ -n "${FILES}" ]
16
16
# clean out conditional markup
17
17
sed -i -e ' s/ifdef::.*\|ifndef::.*\|ifeval::.*\|endif::.*/ /' ${FILES}
18
18
vale ${FILES} --minAlertLevel=error --glob=' *.adoc' --no-exit
19
- # run again, and this time send to pipedream
19
+ echo " "
20
20
set -x
21
+ # run again, and this time send to pipedream
21
22
PR_DATA=' '
22
23
if [ " $1 " == false ] ; then
23
24
PR_DATA=' {"PR": [{"Number": "None", "SHA": "None"}],'
You can’t perform that action at this time.
0 commit comments