Merge pull request #1425 from flatcar-linux/dongsu/github-actions-cacerts-versiondelim

.github: fix version delimiter of ca-certs workflow for main
This commit is contained in:
Dongsu Park 2021-11-17 16:58:11 +01:00 committed by GitHub
commit 3377a02796

View File

@ -15,7 +15,7 @@ jobs:
id: fetch-latest-release id: fetch-latest-release
run: | run: |
git clone --depth=1 --no-checkout https://github.com/nss-dev/nss 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 rm -rf nss
echo ::set-output name=BASE_BRANCH_MAIN::main echo ::set-output name=BASE_BRANCH_MAIN::main
echo ::set-output name=VERSION_MAIN::$(echo ${versionMain}) echo ::set-output name=VERSION_MAIN::$(echo ${versionMain})