fix(ci): show HTTP response body when dispatch fails for debugging
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user