fix(ci): show HTTP response body when dispatch fails for debugging
CI / Build & Quality Checks (push) Successful in 10m43s
Trigger Desktop Build / trigger (push) Failing after 7s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 10:05:50 -04:00
parent 170d22eebb
commit d78f81c3a7
+4 -3
View File
@@ -32,9 +32,10 @@ jobs:
env:
TOKEN: ${{ secrets.ACTIONS_TOKEN }}
run: |
curl -sf -X POST \
HTTP=$(curl -s -o /tmp/resp.txt -w "%{http_code}" -X POST \
"https://code.lotusguild.org/api/v1/repos/LotusGuild/cinny-desktop/actions/workflows/release.yml/dispatches" \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
-d '{"ref":"main"}'
echo "Dispatched release.yml on cinny-desktop/main"
-d '{"ref":"main"}')
echo "HTTP $HTTP: $(cat /tmp/resp.txt)"
[ "$HTTP" = "204" ] || [ "$HTTP" = "200" ] || { echo "Dispatch failed"; exit 1; }