Skip to content

Commit 07abfda

Browse files
committed
ai fx
1 parent f8aa728 commit 07abfda

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/actions/check-docker-tag/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ runs:
1313
- name: "Check for existing tag (${{ inputs.image_name }}:${{ inputs.tag }})"
1414
shell: bash
1515
run: |
16-
tag="${{ inputs.image_name }}:${{ inputs.tag }}"
17-
if [ -z "$tag" ]; then
18-
echo "Error: tag is not set."
16+
image="${{ inputs.image_name }}"
17+
tag_input="${{ inputs.tag }}"
18+
if [ -z "$image" ] || [ -z "$tag_input" ]; then
19+
echo "Error: image_name and tag are required."
1920
exit 1
2021
fi
22+
tag="${image}:${tag_input}"
2123
echo "Checking if tag '$tag' exists on DockerHub..."
2224
if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect "$tag" > /dev/null 2>&1; then
2325
echo "The tag '$tag' already exists on DockerHub. Skipping publish to prevent overwrite."

0 commit comments

Comments
 (0)