name: Debug Release API on: push: branches: - debug-release jobs: debug-api: runs-on: ubuntu-latest steps: - name: Debug token and API run: | TOKEN="${{ secrets.TOKEN_BUILD }}" REPO="${{ gitea.repository }}" API="${{ gitea.server_url }}/api/v1" echo "=== 1. Token check ===" echo "Token length: ${#TOKEN}" echo "Token first 6: ${TOKEN:0:6}" echo "Token last 4: ${TOKEN: -4}" echo "=== 2. GET /user (auth test) ===" curl -sv -H "Authorization: token $TOKEN" "$API/user" 2>&1 | head -30 echo "=== 3. GET releases list ===" curl -s -w "\nHTTP_CODE:%{http_code}" \ -H "Authorization: token $TOKEN" \ "$API/repos/$REPO/releases"