File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,12 @@ build() {
1010
1111 for target in $INPUT_KUSTOMIZATIONS ; do
1212 echo " Building $target " to " $build_dir /$ref /$target "
13- mkdir -p " $build_dir /$ref /$target "
14- kustomize build " $target " -o " $build_dir /$ref /$target /"
13+ if [ ! -d " $target " ]; then
14+ echo " Kustomization $target does not exist"
15+ else
16+ mkdir -p " $build_dir /$ref /$target "
17+ kustomize build " $target " -o " $build_dir /$ref /$target /"
18+ fi
1519 done
1620}
1721
@@ -25,6 +29,10 @@ head_ref_build_dir="$build_dir/$INPUT_HEAD_REF"
2529
2630set +e
2731for target in $INPUT_KUSTOMIZATIONS ; do
32+ # if [ ! -d "$base_ref_build_dir/$target" ]; then
33+ # echo "Kustomization $target does not exist in base ref"
34+ # continue
35+ # fi
2836 diffoscope " $base_ref_build_dir /$target " " $head_ref_build_dir /$target " \
2937 --markdown - \
3038 --exclude-directory-metadata=yes | tee -a diff.md
You can’t perform that action at this time.
0 commit comments