tools: fix V8 update workflow

PR-URL: https://github.com/nodejs/node/pull/52822
Fixes: https://github.com/nodejs/node/issues/50497
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Antoine du Hamel 2024-05-05 16:21:58 +03:00 committed by GitHub
parent 54f1e0a488
commit 38ef4e5c59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,9 +9,9 @@ BASE_DIR=$(cd "$(dirname "$0")/../.." && pwd)
cd "$BASE_DIR" 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." echo "Skipped because V8 is on the latest version."
exit 0 exit 0
fi fi