File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -64,18 +64,27 @@ jobs:
6464 cd extension-temp
6565
6666 echo "📁 Downloading extension-files.tar.gz from release..."
67+ echo "🔍 DEBUG: REPO=$REPO, TAG=$TAG"
68+
69+ # Debug: Check if we can access the release at all
70+ echo "🔍 DEBUG: Testing API access to release..."
71+ RELEASE_INFO=$(curl -s -H "Authorization: token ${{ secrets.SENTIENCE_CHROME_TOKEN }}" \
72+ "https://api.github.com/repos/$REPO/releases/tags/$TAG")
73+
74+ echo "Release info:"
75+ echo "$RELEASE_INFO" | jq -r '.name, .tag_name' || echo "Failed to parse release info"
6776
6877 # For private repos, use the API URL with asset ID, not browser_download_url
69- ASSET_INFO=$(curl -s -H "Authorization: token ${{ secrets.SENTIENCE_CHROME_TOKEN }}" \
70- "https://api.github.com/repos/$REPO/releases/tags/$TAG" | \
78+ ASSET_INFO=$(echo "$RELEASE_INFO" | \
7179 jq -r '.assets[] | select(.name=="extension-files.tar.gz") | "\(.id)|\(.url)"')
7280
7381 if [ -z "$ASSET_INFO" ] || [ "$ASSET_INFO" == "null" ]; then
7482 echo "❌ extension-files.tar.gz not found in release assets"
7583 echo "Available assets:"
76- curl -s -H "Authorization: token ${{ secrets.SENTIENCE_CHROME_TOKEN }}" \
77- "https://api.github.com/repos/$REPO/releases/tags/$TAG" | \
78- jq -r '.assets[] | "\(.name) (id: \(.id))"'
84+ echo "$RELEASE_INFO" | jq -r '.assets[] | "\(.name) (id: \(.id))"'
85+ echo ""
86+ echo "Full release response (first 500 chars):"
87+ echo "$RELEASE_INFO" | head -c 500
7988 exit 1
8089 fi
8190
You can’t perform that action at this time.
0 commit comments