Skip to content

Commit

Permalink
debug: full-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
muicoder committed Jul 19, 2023
1 parent a02ae7f commit 8b485b4
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 @@ -70,10 +70,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 @@ -73,10 +73,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 8b485b4

Please sign in to comment.