Skip to content

Commit

Permalink
fix: simplify script
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-go committed Feb 23, 2023
1 parent 69370b0 commit f3ef6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f3ef6b1

Please sign in to comment.