summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorTony Gorez <gorez.tony@gmail.com>2023-03-15 20:03:58 +0100
committerGitHub <noreply@github.com>2023-03-15 19:03:58 +0000
commitd4ac94502e70938d9ecf8295947995cc64451939 (patch)
tree8ed2009086528997983ea702aa6d119abeef0b15 /.github/workflows
parentfa8465794dc3116af13a6d1ec5e5c7788bf48895 (diff)
downloadnode-new-d4ac94502e70938d9ecf8295947995cc64451939.tar.gz
tools: align update-ada.sh with other scripts
PR-URL: https://github.com/nodejs/node/pull/47044 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tools.yml10
1 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index 8d4e5ae028..5e286f98f7 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -134,12 +134,10 @@ jobs:
subsystem: deps
label: dependencies
run: |
- NEW_VERSION=$(gh api repos/ada-url/ada/releases/latest -q '.tag_name|ltrimstr("v")')
- CURRENT_VERSION=$(grep "#define ADA_VERSION" ./deps/ada/ada.h | sed -n "s/^.*VERSION \(.*\)/\1/p")
- if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
- echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- ./tools/dep_updaters/update-ada.sh "$NEW_VERSION"
- fi
+ ./tools/dep_updaters/update-ada.sh > temp-output
+ cat temp-output
+ tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
+ rm temp-output
- id: nghttp2
subsystem: deps
label: dependencies