Skip to content

Commit e7a99d0

Browse files
committed
Draft.
1 parent f5660c4 commit e7a99d0

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/zUpgrade.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,28 @@ jobs:
19021902
- name: analysis! missing-binaries
19031903
shell: bash
19041904
run: |
1905+
#echo -n
1906+
_safeEcho() {
1907+
printf '%s' "$1"
1908+
shift
1909+
1910+
[[ "$@" == "" ]] && return 0
1911+
1912+
local currentArg
1913+
for currentArg in "$@"
1914+
do
1915+
printf '%s' " "
1916+
printf '%s' "$currentArg"
1917+
done
1918+
return 0
1919+
}
1920+
1921+
#echo
1922+
_safeEcho_newline() {
1923+
_safeEcho "$@"
1924+
printf '\n'
1925+
}
1926+
19051927
mkdir -p ./_local/analysis
19061928
19071929
#cp ./_local/lsmodReport ./_local/analysis/lsmodReport
@@ -1924,8 +1946,8 @@ jobs:
19241946
# Loop through each release
19251947
#local currentIteration
19261948
currentIteration=0
1927-
#for RELEASE in $(echo "$RELEASES" | jq -r '.[].tag_name' | sort --reverse); do
1928-
for RELEASE in $(echo "$RELEASES" | jq -r 'sort_by(.published_at) | reverse | .[].tag_name' | head -n 20); do
1949+
#for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r '.[].tag_name' | sort --reverse); do
1950+
for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r 'sort_by(.published_at) | reverse | .[].tag_name' | head -n 20 | tr -dc 'a-zA-Z0-9\-_.:\n'); do
19291951
19301952
currentIteration=$((currentIteration+1))
19311953

0 commit comments

Comments
 (0)