Skip to content

Commit 5cd613c

Browse files
committed
update github action
1 parent c491e4a commit 5cd613c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/scripts/on_tag_deleted.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ echo "🔍 Searching for Version ID corresponding to tag: $VERSION..."
2323
# Step 1: Find the Version ID from the tag
2424
VERSION_ID=$(gh api "user/packages/container/${REPO_NAME}/versions" \
2525
-H "Authorization: Bearer $GHCR_TOKEN" \
26-
| jq -r --arg VERSION "$VERSION" ".[] | select(.metadata.container.tags[]? == $VERSION) | .id")
26+
| jq -r --arg VERSION "$VERSION" .[] | select(.metadata.container.tags[]? == \"$VERSION\") | .id")
2727
2828
if [[ -z "$VERSION_ID" ]]; then
2929
echo "⚠️ No Version ID found for tag: $VERSION — skipping delete."

0 commit comments

Comments
 (0)