Skip to content

Commit c2dd34a

Browse files
authored
Merge pull request #33 from SentienceAPI/fix_release3
debug: show full API response to diagnose access issue
2 parents e5f48e1 + 20c112e commit c2dd34a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/sync-extension.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,19 @@ jobs:
7171
RELEASE_INFO=$(curl -s -H "Authorization: token ${{ secrets.SENTIENCE_CHROME_TOKEN }}" \
7272
"https://api.github.com/repos/$REPO/releases/tags/$TAG")
7373
74+
echo "🔍 DEBUG: Raw API response:"
75+
echo "$RELEASE_INFO"
76+
echo ""
7477
echo "Release info:"
7578
echo "$RELEASE_INFO" | jq -r '.name, .tag_name' || echo "Failed to parse release info"
7679
80+
# Check for error message
81+
ERROR_MSG=$(echo "$RELEASE_INFO" | jq -r '.message // empty')
82+
if [ -n "$ERROR_MSG" ]; then
83+
echo "❌ API Error: $ERROR_MSG"
84+
echo "This usually means the token doesn't have access to the Organization repo"
85+
fi
86+
7787
# For private repos, use the API URL with asset ID, not browser_download_url
7888
ASSET_INFO=$(echo "$RELEASE_INFO" | \
7989
jq -r '.assets[] | select(.name=="extension-files.tar.gz") | "\(.id)|\(.url)"')

0 commit comments

Comments
 (0)