From b65c369d0a6ef6a5cbeb09ad3ff6caebccb61e63 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Wed, 17 Nov 2021 16:23:32 +0100 Subject: [PATCH] .github: fix version delimiter of ca-certs workflow for main Since every tag of the nss Github repo has `_` delimiters, we need to first use `sort -t_` for sorting, then after that we need to replace `_` with `.` by calling tr. Without that conversion, the input ebuild file name will be wrong. We fixed the issue in all other maintenance branches, but not in main. Fix that also in main. --- .../coreos-overlay/.github/workflows/cacerts-releases-main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/.github/workflows/cacerts-releases-main.yaml b/sdk_container/src/third_party/coreos-overlay/.github/workflows/cacerts-releases-main.yaml index 414b32b594..496ed45b83 100644 --- a/sdk_container/src/third_party/coreos-overlay/.github/workflows/cacerts-releases-main.yaml +++ b/sdk_container/src/third_party/coreos-overlay/.github/workflows/cacerts-releases-main.yaml @@ -15,7 +15,7 @@ jobs: id: fetch-latest-release run: | git clone --depth=1 --no-checkout https://github.com/nss-dev/nss - versionMain=$(git -C nss ls-remote --tags origin | cut -f2 | sed -n "s/refs\/tags\/NSS_\([0-9]_[0-9_]*\).*_RTM$/\1/p" | sort -s -t_ -k1,1 -k2,2n -k3,3n | tail -n1) + versionMain=$(git -C nss ls-remote --tags origin | cut -f2 | sed -n "s/refs\/tags\/NSS_\([0-9]_[0-9_]*\).*_RTM$/\1/p" | sort -s -t_ -k1,1 -k2,2n -k3,3n | tr '_' '.' | tail -n1) rm -rf nss echo ::set-output name=BASE_BRANCH_MAIN::main echo ::set-output name=VERSION_MAIN::$(echo ${versionMain})