@@ -21,12 +21,10 @@ jobs:
2121 subsystem : tools
2222 label : tools
2323 run : |
24- NEW_VERSION=$(npm view eslint dist-tags.latest)
25- CURRENT_VERSION=$(node -p "require('./tools/node_modules/eslint/package.json').version")
26- if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
27- echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
28- ./tools/dep_updaters/update-eslint.sh
29- fi
24+ ./tools/dep_updaters/update-eslint.sh > temp-output
25+ cat temp-output
26+ tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
27+ rm temp-output
3028 - id : corepack
3129 subsystem : deps
3230 label : dependencies
@@ -81,12 +79,10 @@ jobs:
8179 subsystem : deps,test
8280 label : test
8381 run : |
84- NEW_VERSION=$(npm view postject dist-tags.latest)
85- CURRENT_VERSION=$(node -p "require('./test/fixtures/postject-copy/node_modules/postject/package.json').version")
86- if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
87- echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
88- ./tools/dep_updaters/update-postject.sh
89- fi
82+ ./tools/dep_updaters/update-postject.sh > temp-output
83+ cat temp-output
84+ tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
85+ rm temp-output
9086 - id : base64
9187 subsystem : deps
9288 label : dependencies
@@ -122,28 +118,18 @@ jobs:
122118 subsystem : deps
123119 label : dependencies
124120 run : |
125- NEW_VERSION=$(gh api repos/libuv/libuv/releases/latest -q '.tag_name|ltrimstr("v")')
126- VERSION_H="./deps/uv/include/uv/version.h"
127- CURRENT_MAJOR_VERSION=$(grep "#define UV_VERSION_MAJOR" $VERSION_H | sed -n "s/^.*MAJOR \(.*\)/\1/p")
128- CURRENT_MINOR_VERSION=$(grep "#define UV_VERSION_MINOR" $VERSION_H | sed -n "s/^.*MINOR \(.*\)/\1/p")
129- CURRENT_PATCH_VERSION=$(grep "#define UV_VERSION_PATCH" $VERSION_H | sed -n "s/^.*PATCH \(.*\)/\1/p")
130- CURRENT_SUFFIX_VERSION=$(grep "#define UV_VERSION_SUFFIX" $VERSION_H | sed -n "s/^.*SUFFIX \"\(.*\)\"/\1/p")
131- SUFFIX_STRING=$([[ -z "$CURRENT_SUFFIX_VERSION" ]] && echo "" || echo "-$CURRENT_SUFFIX_VERSION")
132- CURRENT_VERSION="$CURRENT_MAJOR_VERSION.$CURRENT_MINOR_VERSION.$CURRENT_PATCH_VERSION$SUFFIX_STRING"
133- if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
134- echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
135- ./tools/dep_updaters/update-libuv.sh "$NEW_VERSION"
136- fi
121+ ./tools/dep_updaters/update-libuv.sh > temp-output
122+ cat temp-output
123+ tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
124+ rm temp-output
137125 - id : simdutf
138126 subsystem : deps
139127 label : dependencies
140128 run : |
141- NEW_VERSION=$(gh api repos/simdutf/simdutf/releases/latest -q '.tag_name|ltrimstr("v")')
142- CURRENT_VERSION=$(grep "#define SIMDUTF_VERSION" ./deps/simdutf/simdutf.h | sed -n "s/^.*VERSION \(.*\)/\1/p")
143- if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
144- echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
145- ./tools/dep_updaters/update-simdutf.sh "$NEW_VERSION"
146- fi
129+ ./tools/dep_updaters/update-simdutf.sh > temp-output
130+ cat temp-output
131+ tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
132+ rm temp-output
147133 - id : nghttp2
148134 subsystem : deps
149135 label : dependencies
0 commit comments