Skip to content

Commit 825b502

Browse files
committed
fix: add check for empty tags before deletion in cleanup workflow
1 parent c900640 commit 825b502

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/clean-main-images.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
echo "Deleting the following tags:"
4444
echo "$TO_DELETE" | awk '{print $2}'
4545
46+
if [ -z "$TO_DELETE" ]; then
47+
echo "No tags to delete."
48+
exit 0
49+
fi
50+
4651
FAILED_DELETIONS=""
4752
while read -r line; do
4853
id=$(echo "$line" | awk '{print $1}')

0 commit comments

Comments
 (0)