Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit 9ca8476

Browse files
committed
Made sure the version tag is used for duplicate check
1 parent 69c30e8 commit 9ca8476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
6868
bearer_token=$(echo "${{ secrets.token }}" | base64)
6969
70-
if [[ "${{ inputs.release }}" = "true" ]] && (curl -If -H "Authorization: Bearer ${bearer_token}" "https://ghcr.io/v2/${{ secrets.username }}/${{ inputs.image_name }}/manifests/${cockpit_version}" || false); then
70+
if [[ "${{ inputs.release }}" = "true" ]] && (curl -If -H "Authorization: Bearer ${bearer_token}" "https://ghcr.io/v2/${{ secrets.username }}/${{ inputs.image_name }}/manifests/${cockpit_version_tag}" || false); then
7171
echo "Version ${cockpit_version} has already been released."
7272
skip_workflow=1
7373
fi

0 commit comments

Comments
 (0)