Skip to content

Commit a60270b

Browse files
authored
Merge pull request #253 from Muscraft/fix-mirror-stable
fix: Skip tags that are empty while mirroring
2 parents 213cff0 + 949eafd commit a60270b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/mirror_stable.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ jobs:
122122
./crane copy "docker.io/rust:${{ matrix.name }}" "ghcr.io/${{ github.repository_owner }}/rust:${{ matrix.name }}"
123123
readarray -t TAGS <<< "${{ matrix.tags }}"
124124
for tag in "${TAGS[@]}"; do
125-
./crane tag "ghcr.io/${{ github.repository_owner }}/rust:${{ matrix.name }}" ${tag}
125+
if [ -n "$tag" ]; then
126+
./crane tag "ghcr.io/${{ github.repository_owner }}/rust:${{ matrix.name }}" "${tag}"
127+
fi
126128
done
127129

0 commit comments

Comments
 (0)