From 15b0e8b1aa79294e503004cdf1065fc322a70506 Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Fri, 17 Feb 2023 16:09:10 +0100 Subject: [PATCH] tools: update nghttp2 action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46700 Reviewed-By: Rafael Gonzaga Reviewed-By: Yagiz Nizipli Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Tierney Cyren Reviewed-By: Jiawen Geng Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell --- .github/workflows/tools.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index 4ab560e2115cab..3dafb47b64052a 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -144,6 +144,16 @@ jobs: echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV ./tools/dep_updaters/update-simdutf.sh "$NEW_VERSION" fi + - id: nghttp2 + subsystem: deps + label: dependencies + run: | + NEW_VERSION=$(gh api repos/nghttp2/nghttp2/releases/latest -q '.tag_name|ltrimstr("v")') + CURRENT_VERSION=$(grep "#define NGHTTP2_VERSION" ./deps/nghttp2/lib/includes/nghttp2ver.h | sed -n "s/^.*VERSION \(.*\)/\1/p") + if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then + echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV + ./tools/update-nghttp2.sh "$NEW_VERSION" + fi steps: - uses: actions/checkout@v3 with: