File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,42 @@ jobs:
300
300
failure="true"
301
301
fi
302
302
303
+
304
+
305
+ version_family="3.3"
306
+
307
+ latest_version_json=$(
308
+ jq --null-input \
309
+ --arg "family" "${version_family}" \
310
+ '{ "source": { "family": $family } }' \
311
+ | /opt/resource/check
312
+ )
313
+ latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}")
314
+
315
+ if [[ ${latest_version} != ${version_family}* ]]; then
316
+ echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'."
317
+ failure="true"
318
+ fi
319
+
320
+
321
+
322
+ version_family="3.4"
323
+
324
+ latest_version_json=$(
325
+ jq --null-input \
326
+ --arg "family" "${version_family}" \
327
+ '{ "source": { "family": $family } }' \
328
+ | /opt/resource/check
329
+ )
330
+ latest_version=$(jq --raw-output '.[0].version' <<< "${latest_version_json}")
331
+
332
+ if [[ ${latest_version} != ${version_family}* ]]; then
333
+ echo >&2 "FAIL: expected version to start with '${version_family}', but got '${latest_version}'."
334
+ failure="true"
335
+ fi
336
+
337
+
338
+
303
339
if [[ ${failure} == true ]]; then
304
340
exit 1
305
341
fi
You can’t perform that action at this time.
0 commit comments