File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ script_dir=$(dirname "$0")
6
6
7
7
result=0
8
8
for template in $( realpath " ${script_dir} " /../examples/* .yaml " ${script_dir} " /./test-templates/* .yaml| sort -u) ; do
9
- for location in $( yq eval ' .images[].location' " ${template} " ) ; do
10
- if [[ " ${location} " == http* ]]; then
11
- response=$( curl -L -s -I -o /dev/null -w " %{http_code}" " ${location} " )
12
- if [[ ${response} != " 200" ]]; then
13
- line=$( grep -n " ${location} " " ${template} " | cut -d ' :' -f 1)
14
- echo " ::error file=${template} ,line=${line} ::response: ${response} for ${location} "
15
- result=1
16
- else
17
- echo " response: ${response} for ${location} "
18
- fi
19
- fi
20
- done
9
+ for location in $( yq eval ' .images[].location' " ${template} " ) ; do
10
+ if [[ " ${location} " == http* ]]; then
11
+ response=$( curl -L -s -I -o /dev/null -w " %{http_code}" " ${location} " )
12
+ if [[ ${response} != " 200" ]]; then
13
+ line=$( grep -n " ${location} " " ${template} " | cut -d ' :' -f 1)
14
+ echo " ::error file=${template} ,line=${line} ::response: ${response} for ${location} "
15
+ result=1
16
+ else
17
+ echo " response: ${response} for ${location} "
18
+ fi
19
+ fi
20
+ done
21
21
done
22
22
23
23
exit " ${result} "
You can’t perform that action at this time.
0 commit comments