Skip to content

Commit e5f48e1

Browse files
authored
Merge pull request #32 from SentienceAPI/fix_release3
debug: add verbose logging for release download
2 parents 23160bd + 4d69510 commit e5f48e1

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/sync-extension.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)