Skip to content

Commit 2012770

Browse files
committed
fix: remove debug step for GHCR_PAT and correct repository owner reference in tag retrieval
1 parent 9841508 commit 2012770

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/publish-alpha.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@ jobs:
3232

3333
- name: Clean install dependencies
3434
run: npm clean-install
35-
36-
- name: Debug GHCR_PAT
37-
env:
38-
GHCR_PAT: ${{ secrets.GHCR_PAT }}
39-
shell: bash
40-
run: |
41-
echo "Token length: ${#GHCR_PAT}"
42-
35+
4336
- name: Determine next alpha version
4437
id: version
4538
run: |
@@ -50,7 +43,7 @@ jobs:
5043
# Use a PAT with read:packages scope
5144
TOKEN="${{ secrets.GHCR_PAT }}"
5245
TAGS_JSON=$(curl -s -H "Authorization: Bearer $TOKEN" \
53-
"https://ghcr.io/v2/${{ github.repository }}/podverse-api/tags/list")
46+
"https://ghcr.io/v2/${{ github.repository_owner }}/podverse-api/tags/list")
5447
echo "Raw tags JSON: $TAGS_JSON"
5548
TAGS=$(echo "$TAGS_JSON" | jq -r '.tags[]' | grep "alpha" || true)
5649
echo "Filtered alpha tags: $TAGS"

0 commit comments

Comments
 (0)