From c9f9497527df0d18c70d0d778244dbaf6fdfe23d Mon Sep 17 00:00:00 2001 From: muicoder Date: Wed, 14 Jun 2023 18:25:26 +0800 Subject: [PATCH] debug: full-versions --- .github/scripts/versions/versions.sh | 5 +---- .github/scripts/versions/versions_arch.sh | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/scripts/versions/versions.sh b/.github/scripts/versions/versions.sh index 020dd5e..b565a60 100755 --- a/.github/scripts/versions/versions.sh +++ b/.github/scripts/versions/versions.sh @@ -84,10 +84,7 @@ for file in $(pwd)/.github/versions/${part:-*}/CHANGELOG*; do ) [[ -s ".versions/$K8S_MD" ]] || cp ".versions/$K8S_MD.latest" ".versions/$K8S_MD" if ! [[ "$SEALOS" =~ ^[0-9\.]+[0-9]$ ]] || [[ -n "$sealosPatch" ]] || [[ "${SEALOS_XYZ//./}" -ge 416 ]]; then - { - cut -dv -f 2 ".versions/$K8S_MD" | head -n 1 - cut -dv -f 2 ".versions/$K8S_MD" | tail -n 1 - } | sort | uniq | awk '{printf "{\"'version'\":\"%s\"},",$1}' >>.versions/versions.txt + cut -dv -f 2 ".versions/$K8S_MD" | sort | uniq | awk '{printf "{\"'version'\":\"%s\"},",$1}' >>.versions/versions.txt else cut -dv -f 2 ".versions/$K8S_MD" | awk '{printf "{\"'version'\":\"%s\"},",$1}' >>.versions/versions.txt diff --git a/.github/scripts/versions/versions_arch.sh b/.github/scripts/versions/versions_arch.sh index dfe83d6..b959d99 100755 --- a/.github/scripts/versions/versions_arch.sh +++ b/.github/scripts/versions/versions_arch.sh @@ -87,10 +87,7 @@ for file in $(pwd)/.github/versions/${part:-*}/CHANGELOG*; do mv ".versions/$K8S_MD.latest" ".versions/$K8S_MD" fi if ! [[ "$SEALOS" =~ ^[0-9\.]+[0-9]$ ]] || [[ -n "$sealosPatch" ]] || [[ "${SEALOS_XYZ//./}" -ge 416 ]]; then - { - cut -dv -f 2 ".versions/$K8S_MD" | head -n 1 - cut -dv -f 2 ".versions/$K8S_MD" | tail -n 1 - } | sort | uniq | awk '{printf "{\"'version'\":\"%s\",\"'arch'\":\"amd64\"},{\"'version'\":\"%s\",\"'arch'\":\"arm64\"},",$1,$1}' >>.versions/versions_arch.txt + cut -dv -f 2 ".versions/$K8S_MD" | sort | uniq | awk '{printf "{\"'version'\":\"%s\",\"'arch'\":\"amd64\"},{\"'version'\":\"%s\",\"'arch'\":\"arm64\"},",$1,$1}' >>.versions/versions_arch.txt else cut -dv -f 2 ".versions/$K8S_MD" | awk '{printf "{\"'version'\":\"%s\",\"'arch'\":\"amd64\"},{\"'version'\":\"%s\",\"'arch'\":\"arm64\"},",$1,$1}' >>.versions/versions_arch.txt