fix: help exits nonzero (pipefail+head = SIGPIPE 141); verify the install, not the help's exit code

This commit is contained in:
2026-10-31 11:47:01 +02:00
parent c32c004715
commit 1762c07a1f
+1 -1
View File
@@ -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