Skip to content

Commit eaecc38

Browse files
committed
fix: improve tag retrieval process in publish-alpha.yml for better clarity and debugging
1 parent 2186938 commit eaecc38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish-alpha.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ jobs:
4242
4343
# Use a PAT with read:packages scope
4444
TOKEN="${{ secrets.GHCR_PAT }}"
45-
TAGS=$(curl -s -H "Authorization: Bearer $TOKEN" \
46-
"https://ghcr.io/v2/${{ github.repository }}/podverse-api/tags/list" | jq -r '.tags[]' | grep "alpha" || true)
45+
TAGS_JSON=$(curl -s -H "Authorization: Bearer $TOKEN" \
46+
"https://ghcr.io/v2/${{ github.repository }}/podverse-api/tags/list")
47+
echo "Raw tags JSON: $TAGS_JSON"
48+
TAGS=$(echo "$TAGS_JSON" | jq -r '.tags[]' | grep "alpha" || true)
49+
echo "Filtered alpha tags: $TAGS"
4750
4851
# Try to get the current alpha version (e.g., 5.1.1-alpha.3)
4952
ALPHA_VERSION=$(echo "$TAGS" | grep "^${BASE_VERSION}-alpha\." | sort -V | tail -n1)
53+
echo "Latest alpha version for base $BASE_VERSION: $ALPHA_VERSION"
5054
5155
if [[ -z "$ALPHA_VERSION" ]]; then
5256
echo "No alpha version found. Starting with: $BASE_VERSION-alpha.0"

0 commit comments

Comments
 (0)