summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarco Ippolito <marcoippolito54@gmail.com>2023-04-05 15:55:28 +0200
committerGitHub <noreply@github.com>2023-04-05 13:55:28 +0000
commit069365c5bd63b8ed483a75e3791aae8f35ddf8c8 (patch)
tree00584f4e263f725f0bc0a266cca02869141748e0 /.github
parent1ff9824094a228a71f28a301a3a7abd407dda6ce (diff)
downloadnode-new-069365c5bd63b8ed483a75e3791aae8f35ddf8c8.tar.gz
tools: fix update-openssl.yml compare version
PR-URL: https://github.com/nodejs/node/pull/47384 Refs: https://github.com/nodejs/node/pull/46957 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-openssl.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/update-openssl.yml b/.github/workflows/update-openssl.yml
index c2f919c60f..f79ea550b4 100644
--- a/.github/workflows/update-openssl.yml
+++ b/.github/workflows/update-openssl.yml
@@ -28,7 +28,8 @@ jobs:
NEW_VERSION=$(gh api repos/quictls/openssl/releases -q '.[].tag_name|select(contains("openssl-3"))|ltrimstr("openssl-")' | head -n1)
NEW_VERSION_NO_RELEASE_1=$(case $NEW_VERSION in *quic1) echo ${NEW_VERSION%1};; *) echo $NEW_VERSION;; esac)
VERSION_H="./deps/openssl/config/archs/linux-x86_64/asm/include/openssl/opensslv.h"
- CURRENT_VERSION=$(grep "OPENSSL_FULL_VERSION_STR" $VERSION_H | sed -n "s/^.*VERSION_STR \"\(.*\)\"/\1/p")
+ CURRENT_VERSION=$(grep "OPENSSL_FULL_VERSION_STR" $VERSION_H | sed -n "s/^.*VERSION_STR \"\(.*\)\"/\1/p" | sed 's/+/-/g')
+ echo "comparing current version: $CURRENT_VERSION with $NEW_VERSION_NO_RELEASE_1"
if [ "$NEW_VERSION_NO_RELEASE_1" != "$CURRENT_VERSION" ]; then
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
echo "HAS_UPDATE=true" >> $GITHUB_ENV