diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f130cc0..8b97c5b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -109,12 +109,13 @@ jobs: for workflow in build-app-linux.yml build-app-windows.yml build-app-macos.yml; do echo "Dispatching ${workflow} for ${TAG}..." - HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X POST \ + HTTP_CODE=$(curl -s -w "%{http_code}" -o /tmp/dispatch_resp.txt -X POST \ -H "Authorization: token ${BUILD_TOKEN}" \ -H "Content-Type: application/json" \ -d "{\"ref\": \"main\", \"inputs\": {\"tag\": \"${TAG}\"}}" \ "${REPO_API}/actions/workflows/${workflow}/dispatches") echo " -> HTTP ${HTTP_CODE}" + [ "$HTTP_CODE" != "204" ] && cat /tmp/dispatch_resp.txt && echo "" done - name: Clean up old app releases