fix: help exits nonzero (pipefail+head = SIGPIPE 141); verify the install, not the help's exit code
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user