GeezerVison is showing github.com — tools: fix update-openssl.yml compare version · nodejs/node@a65fe5c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/update-openssl.yml +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
28 | 28 | NEW_VERSION=$(gh api repos/quictls/openssl/releases -q '.[].tag_name|select(contains("openssl-3"))|ltrimstr("openssl-")' | head -n1) |
29 | 29 | NEW_VERSION_NO_RELEASE_1=$(case $NEW_VERSION in *quic1) echo ${NEW_VERSION%1};; *) echo $NEW_VERSION;; esac) |
30 | 30 | VERSION_H="./deps/openssl/config/archs/linux-x86_64/asm/include/openssl/opensslv.h" |
31 | | - CURRENT_VERSION=$(grep "OPENSSL_FULL_VERSION_STR" $VERSION_H | sed -n "s/^.*VERSION_STR \"\(.*\)\"/\1/p") |
| 31 | + CURRENT_VERSION=$(grep "OPENSSL_FULL_VERSION_STR" $VERSION_H | sed -n "s/^.*VERSION_STR \"\(.*\)\"/\1/p" | sed 's/+/-/g') |
| 32 | + echo "comparing current version: $CURRENT_VERSION with $NEW_VERSION_NO_RELEASE_1" |
32 | 33 | if [ "$NEW_VERSION_NO_RELEASE_1" != "$CURRENT_VERSION" ]; then |
33 | 34 | echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV |
34 | 35 | echo "HAS_UPDATE=true" >> $GITHUB_ENV |
|