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 @@ -154,6 +154,19 @@ jobs:
154
154
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
155
155
./tools/update-nghttp2.sh "$NEW_VERSION"
156
156
fi
157
+ - id : llhttp
158
+ subsystem : deps
159
+ label : dependencies
160
+ run : |
161
+ NEW_VERSION=$(gh api repos/nodejs/llhttp/releases/latest -q '.tag_name|ltrimstr("release/v")')
162
+ CURRENT_MAJOR_VERSION=$(grep "#define LLHTTP_VERSION_MAJOR" ./deps/llhttp/include/llhttp.h | sed -n "s/^.*MAJOR \(.*\)/\1/p")
163
+ CURRENT_MINOR_VERSION=$(grep "#define LLHTTP_VERSION_MINOR" ./deps/llhttp/include/llhttp.h | sed -n "s/^.*MINOR \(.*\)/\1/p")
164
+ CURRENT_PATCH_VERSION=$(grep "#define LLHTTP_VERSION_PATCH" ./deps/llhttp/include/llhttp.h | sed -n "s/^.*PATCH \(.*\)/\1/p")
165
+ CURRENT_VERSION="$CURRENT_MAJOR_VERSION.$CURRENT_MINOR_VERSION.$CURRENT_PATCH_VERSION"
166
+ if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
167
+ echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
168
+ ./tools/update-llhttp.sh "$NEW_VERSION"
169
+ fi
157
170
steps :
158
171
- uses : actions/checkout@v3
159
172
with :
You can’t perform that action at this time.
0 commit comments