Skip to content

Commit

Permalink
debug: full-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
muicoder committed Apr 22, 2024
1 parent 6f1c75c commit c9f9497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/scripts/versions/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions .github/scripts/versions/versions_arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9f9497

Please sign in to comment.