File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,19 @@ jobs:
164
164
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
165
165
./tools/update-nghttp2.sh "$NEW_VERSION"
166
166
fi
167
+ - id : llhttp
168
+ subsystem : deps
169
+ label : dependencies
170
+ run : |
171
+ NEW_VERSION=$(gh api repos/nodejs/llhttp/releases/latest -q '.tag_name|ltrimstr("release/v")')
172
+ CURRENT_MAJOR_VERSION=$(grep "#define LLHTTP_VERSION_MAJOR" ./deps/llhttp/include/llhttp.h | sed -n "s/^.*MAJOR \(.*\)/\1/p")
173
+ CURRENT_MINOR_VERSION=$(grep "#define LLHTTP_VERSION_MINOR" ./deps/llhttp/include/llhttp.h | sed -n "s/^.*MINOR \(.*\)/\1/p")
174
+ CURRENT_PATCH_VERSION=$(grep "#define LLHTTP_VERSION_PATCH" ./deps/llhttp/include/llhttp.h | sed -n "s/^.*PATCH \(.*\)/\1/p")
175
+ CURRENT_VERSION="$CURRENT_MAJOR_VERSION.$CURRENT_MINOR_VERSION.$CURRENT_PATCH_VERSION"
176
+ if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
177
+ echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
178
+ ./tools/update-llhttp.sh "$NEW_VERSION"
179
+ fi
167
180
steps :
168
181
- uses : actions/checkout@v3
169
182
with :
You can’t perform that action at this time.
0 commit comments