Skip to content

Commit

Permalink
[ci] More spec-check fixes, verified in situ
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Oct 20, 2022
1 parent 0608ec6 commit 9bb0215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/compare-release-specs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ unchanged=()
changed=()
while IFS='' read -r rel; do
prev_ver="$(echo "$prev_releases" | jq -r --arg r "$rel" \
'.releases | map(select(.name == $r) | .version) | sort | unique | join(",") | if(.|length>0) then . else "--none--" end | join(",")' )"
'.releases | map(select(.name == $r) | .version) | sort | unique | if(.|length>0) then .|join(",") else "--none--" end' )"
if [[ "$prev_ver" == "--none--" ]] ; then continue ; fi
curr_ver="$(echo "$curr_releases" | jq -r --arg r "$rel" \
'.releases | map(select(.name == $r) | .version) | sort | unique | join(",")' )"
Expand Down Expand Up @@ -103,7 +103,7 @@ if [[ "${#changed[@]}" -gt 0 && -n "${changed[0]}" ]] ; then
if [ -f "${ci_dir}/ci/upstreamrepo.yml" ]; then
upstreamrepo=$(spruce json "${ci_dir}/ci/upstreamrepo.yml")
else
upstreamrepo="[]"
upstreamrepo='{"repos": []}'
fi
# TODO: do this in two phases -- first phase pull out all the non-compiled
# versions, then run through with the compiled versions, picking up the
Expand Down

0 comments on commit 9bb0215

Please sign in to comment.