fix(ci): ignore empty tags in push step - second attempt

This commit is contained in:
Julien Neuhart
2025-08-14 22:03:53 +02:00
parent 2f487d2e83
commit 9e130614ce

View File

@@ -32,9 +32,15 @@ echo "Push tag(s) 📦"
echo
echo "Tag(s) to push:"
IFS=',' read -ra tags_to_push <<< "$tags"
IFS=',' read -ra tmp_tags_to_push <<< "$tags"
tags_to_push=()
for tag in "${tmp_tags_to_push[@]}"; do
[ -n "$tag" ] && tags_to_push+=("$tag")
done
for tag in "${tags_to_push[@]}"; do
[ -n "$tag" ] && echo "- $tag"
echo "- $tag"
done
if [ "$dry_run" = "true" ]; then