mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-02 19:11:20 +02:00
.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.
This commit is contained in:
parent
e7e8b822ac
commit
b65c369d0a
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user