From 38ef4e5c592843094d11eeea42af27c7bd9cce5f Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 5 May 2024 16:21:58 +0300 Subject: [PATCH] tools: fix V8 update workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/52822 Fixes: https://github.com/nodejs/node/issues/50497 Reviewed-By: Michaƫl Zasso Reviewed-By: Marco Ippolito Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- tools/dep_updaters/update-v8-patch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dep_updaters/update-v8-patch.sh b/tools/dep_updaters/update-v8-patch.sh index 799bf7697191b7..77080f865154bc 100755 --- a/tools/dep_updaters/update-v8-patch.sh +++ b/tools/dep_updaters/update-v8-patch.sh @@ -9,9 +9,9 @@ BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd) cd "$BASE_DIR" -IS_UP_TO_DATE=$(git node v8 minor | grep "V8 is up-to-date") +CAN_UPDATE=$(git node v8 minor | grep -q "V8 is up-to-date" || echo "1") -if [ -n "$IS_UP_TO_DATE" ]; then +if [ -z "$CAN_UPDATE" ]; then echo "Skipped because V8 is on the latest version." exit 0 fi