Files
wireguard-vpn/.gitea/workflows/release.yaml
T
datadunia 981506c96c
Debug Release API / debug-api (push) Failing after 1s
debug: dry-run test token and API auth
2026-05-08 04:46:13 +07:00

30 lines
799 B
YAML

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"