From 2811f5bb9cb41a33577f8eeba37128cd91ea2deb Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 8 Apr 2026 12:49:38 -0700 Subject: [PATCH] Fix release workflow false failure on successful dispatch The line [ "\$HTTP_CODE" != "204" ] && cat ... returns exit code 1 when the condition is false (all dispatches succeeded). Since it was the last command in the loop, the step reported failure. Changed to if/then/fi which doesn't leak the test exit code. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6e12004..2a6fb4c 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -109,5 +109,5 @@ jobs: -d "{\"ref\": \"main\", \"inputs\": {\"tag\": \"${RELEASE_TAG}\"}}" \ "${REPO_API}/actions/workflows/${workflow}/dispatches") echo " -> HTTP ${HTTP_CODE}" - [ "$HTTP_CODE" != "204" ] && cat /tmp/dispatch_resp.txt && echo "" + if [ "$HTTP_CODE" != "204" ]; then cat /tmp/dispatch_resp.txt; echo ""; fi done