From 6626337d20c844ce0390cfa1fbcf439705cc29bc Mon Sep 17 00:00:00 2001 From: Ashwin Bhat Date: Mon, 24 Nov 2025 20:52:16 -0500 Subject: [PATCH] fix: suppress exit code from killed timeout watchdog process MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When killing the timeout watchdog process after successful installation, `wait` returns exit code 143 (SIGTERM). Add `|| true` to prevent this from causing the step to fail. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- action.yml | 8 ++++---- base-action/action.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/action.yml b/action.yml index 5acbb41..fe10f16 100644 --- a/action.yml +++ b/action.yml @@ -205,13 +205,13 @@ runs: ( sleep 120; kill $install_pid 2>/dev/null ) & timeout_pid=$! if wait $install_pid 2>/dev/null; then - kill $timeout_pid 2>/dev/null - wait $timeout_pid 2>/dev/null + kill $timeout_pid 2>/dev/null || true + wait $timeout_pid 2>/dev/null || true echo "Claude Code installed successfully" break fi - kill $timeout_pid 2>/dev/null - wait $timeout_pid 2>/dev/null + kill $timeout_pid 2>/dev/null || true + wait $timeout_pid 2>/dev/null || true if [ $attempt -eq 3 ]; then echo "Failed to install Claude Code after 3 attempts" exit 1 diff --git a/base-action/action.yml b/base-action/action.yml index 9ace0b4..1e66e22 100644 --- a/base-action/action.yml +++ b/base-action/action.yml @@ -127,13 +127,13 @@ runs: ( sleep 120; kill $install_pid 2>/dev/null ) & timeout_pid=$! if wait $install_pid 2>/dev/null; then - kill $timeout_pid 2>/dev/null - wait $timeout_pid 2>/dev/null + kill $timeout_pid 2>/dev/null || true + wait $timeout_pid 2>/dev/null || true echo "Claude Code installed successfully" break fi - kill $timeout_pid 2>/dev/null - wait $timeout_pid 2>/dev/null + kill $timeout_pid 2>/dev/null || true + wait $timeout_pid 2>/dev/null || true if [ $attempt -eq 3 ]; then echo "Failed to install Claude Code after 3 attempts" exit 1