Skip to content

Commit 1cd4793

Browse files
committed
update code
1 parent 9f7df0c commit 1cd4793

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

entrypoint.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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

2630
set +e
2731
for 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

0 commit comments

Comments
 (0)