From e14bb284e7ce2e3349a94d5f2a2489ef52e2c6f4 Mon Sep 17 00:00:00 2001 From: Tony Gorez Date: Thu, 23 Feb 2023 12:15:58 +0100 Subject: [PATCH] fix: simplify script --- .github/workflows/tools.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index f226e90053b38a..639ca66dd3a546 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -121,7 +121,7 @@ jobs: NEW_VERSION=$(gh api repos/libuv/libuv/releases/latest -q '.tag_name|ltrimstr("v")') ./tools/dep_updaters/update-libuv.sh "$NEW_VERSION" > temp-output cat temp-output - if cat temp-output | grep "All done!"; then + if grep -q "All done!" temp-output; then echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV fi rm temp-output @@ -132,7 +132,7 @@ jobs: NEW_VERSION=$(gh api repos/simdutf/simdutf/releases/latest -q '.tag_name|ltrimstr("v")') ./tools/dep_updaters/update-simdutf.sh "$NEW_VERSION" > temp-output cat temp-output - if cat temp-output | grep "All done!"; then + if grep -q "All done!" temp-output; then echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV fi rm temp-output