@@ -21,6 +21,11 @@ check_updated_assemblies () {
21
21
then
22
22
# $UPDATED_ASSEMBLIES is the list of assemblies that contains changed modules
23
23
UPDATED_ASSEMBLIES=$( grep -rnwl " $REPO_PATH " --include=\* .adoc --exclude-dir={snippets,modules} -e " $MODULES " )
24
+ # Exit 0 if there are no modified assemblies
25
+ if [[ -z " ${UPDATED_ASSEMBLIES} " ]]
26
+ then
27
+ exit 0
28
+ fi
24
29
# subtract $REPO_PATH from path with bash substring replacement
25
30
UPDATED_ASSEMBLIES=${UPDATED_ASSEMBLIES// " $REPO_PATH /" / }
26
31
fi
@@ -51,15 +56,15 @@ check_updated_assemblies () {
51
56
52
57
update_log () {
53
58
echo " "
54
- echo " ************************************************************************"
59
+ echo " **************************************************************************** "
55
60
echo " "
56
- echo " Validating all AsciiDoc files that are included in the pull request. 🕵"
57
- echo " Other assemblies that include the modifed modules are also validated. 🙀"
58
- echo " This might include assemblies that are not in the pull request. 🤬"
59
- echo " Validation will fail with FAILED, ERROR, or WARNING messages. ❌"
60
- echo " Correct all reported AsciiDoc errors to pass the validation build. 🤟"
61
+ echo " Validating all AsciiDoc assemblies that are modifed by the pull request. 🕵"
62
+ echo " All assemblies that include modifed modules are validated. 🙀"
63
+ echo " This might include assemblies that are not in the pull request! 🤬"
64
+ echo " Validation will fail with FAILED, ERROR, or WARNING messages. ❌"
65
+ echo " Correct all reported AsciiDoc errors to pass the validation build. 🤟"
61
66
echo " "
62
- echo " ************************************************************************"
67
+ echo " **************************************************************************** "
63
68
echo " "
64
69
}
65
70
0 commit comments