File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 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)"')
You can’t perform that action at this time.
0 commit comments