@@ -21,12 +21,10 @@ jobs:
21
21
subsystem : tools
22
22
label : tools
23
23
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
30
28
- id : corepack
31
29
subsystem : deps
32
30
label : dependencies
@@ -81,12 +79,10 @@ jobs:
81
79
subsystem : deps,test
82
80
label : test
83
81
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
90
86
- id : base64
91
87
subsystem : deps
92
88
label : dependencies
@@ -122,28 +118,18 @@ jobs:
122
118
subsystem : deps
123
119
label : dependencies
124
120
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
137
125
- id : simdutf
138
126
subsystem : deps
139
127
label : dependencies
140
128
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
147
133
- id : nghttp2
148
134
subsystem : deps
149
135
label : dependencies
0 commit comments