From 1762c07a1f4e48c5e2566f19e7b574b7dbe58960 Mon Sep 17 00:00:00 2001 From: Vlad Durnea Date: Sat, 31 Oct 2026 11:47:01 +0200 Subject: [PATCH] fix: help exits nonzero (pipefail+head = SIGPIPE 141); verify the install, not the help's exit code --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5aa7b07..c21ca58 100644 --- a/action.yml +++ b/action.yml @@ -11,4 +11,4 @@ runs: run: | set -euo pipefail GOBIN=/usr/local/bin go install "golang.org/x/tools/cmd/deadcode@${{ inputs.version }}" - deadcode -h 2>&1 | head -1 + deadcode -h >/dev/null 2>&1 || true # help exits nonzero; the install is what we verify