Skip to content

Commit a560a78

Browse files
marco-ippolitotargos
authored andcommitted
tools: update nghttp2 action
PR-URL: #46700 Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tierney Cyren <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
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

Lines changed: 10 additions & 0 deletions
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)