diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index 2b935a04658cd2..c669e21c5a9fb9 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -154,6 +154,16 @@ jobs: echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV ./tools/dep_updaters/update-ada.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: