File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,12 @@ function validate_image_tag() {
41
41
# Delete images older than DELETE_SINCE_DAYS and exit 0
42
42
if [ -n " $DELETE_SINCE_DAYS " ]; then
43
43
echo " ::notice::Deleting images older than $DELETE_SINCE_DAYS days"
44
- repo_tags=$( curl -s -u $HTTPS_USERNAME https://$REGISTRY_URL /v2/$GITHUB_OWNER /$APP_NAME /tags/list | jq -r ' .tags[]' )
44
+ repo_tags=$( curl -s -u $HTTPS_USERNAME https://$REGISTRY_URL /v2/$GITHUB_OWNER /$APP_NAME /tags/list | jq -r ' .tags[]?' )
45
+ if [ -z " $repo_tags " ]; then
46
+ echo " ::warning::No images found for $APP_NAME "
47
+ exit 0
48
+ fi
49
+
45
50
while IFS= read -r tag; do
46
51
manifest=$( curl -s -u $HTTPS_USERNAME \
47
52
-H " Accept: application/vnd.docker.distribution.manifest.v2+json" \
You can’t perform that action at this time.
0 commit comments