From 2829d2e53af53c7bc832c749609e46bd3bb76116 Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Fri, 17 Feb 2023 16:09:10 +0100 Subject: [PATCH 1/2] tools: update nghttp2 action --- .github/workflows/tools.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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: From b198d2dd916d5c66ec907120bf7e0e6b16bb10d5 Mon Sep 17 00:00:00 2001 From: Marco Ippolito Date: Fri, 17 Feb 2023 16:29:53 +0100 Subject: [PATCH 2/2] tools: fixed path --- .github/workflows/tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index c669e21c5a9fb9..e92a2e787a7b91 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -159,7 +159,7 @@ jobs: 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") + CURRENT_VERSION=$(grep "#define NGHTTP2_VERSION" ./deps/nghttp2/lib/includes/nghttp2/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"