Skip to content

Commit a560a78

Browse files
marco-ippolitotargos
authored andcommitted
tools: update nghttp2 action
PR-URL: #46700 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2ff9b20 commit a560a78

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/tools.yml

+10
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ jobs:
154154
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
155155
./tools/dep_updaters/update-ada.sh "$NEW_VERSION"
156156
fi
157+
- id: nghttp2
158+
subsystem: deps
159+
label: dependencies
160+
run: |
161+
NEW_VERSION=$(gh api repos/nghttp2/nghttp2/releases/latest -q '.tag_name|ltrimstr("v")')
162+
CURRENT_VERSION=$(grep "#define NGHTTP2_VERSION" ./deps/nghttp2/lib/includes/nghttp2ver.h | sed -n "s/^.*VERSION \(.*\)/\1/p")
163+
if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
164+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
165+
./tools/update-nghttp2.sh "$NEW_VERSION"
166+
fi
157167
steps:
158168
- uses: actions/checkout@v3
159169
with:

0 commit comments

Comments
 (0)