mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
scripts/update-gh-pages: fix helm repo update
Whitespace in release metadata json was not correctly handled.
This commit is contained in:
parent
c7442f81b0
commit
6541e3bb55
1 changed files with 4 additions and 2 deletions
|
@ -37,9 +37,11 @@ update_helm_repo_index() {
|
|||
releases="`curl -sSf -H 'Accept: application/vnd.github.v3+json' \
|
||||
$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/releases | jq -c '.[]'`"
|
||||
|
||||
for release_meta in $releases; do
|
||||
echo "$releases" | while read -r release_meta; do
|
||||
# Set fields we're interested in as shell variables
|
||||
eval `echo $release_meta | jq -r '{tag_name, url, assets} | keys[] as $k | "\($k)='"'"'\(.[$k])'"'"'"'`
|
||||
eval `echo "$release_meta" | jq -r '{tag_name, url, assets} | keys[] as $k | "\($k)='"'"'\(.[$k])'"'"'"'`
|
||||
|
||||
echo "Scanning assets of release $tag_name..."
|
||||
|
||||
for asset_meta in `echo $assets | jq -c '.[]'`; do
|
||||
# Set fields we're interested in as "asset_<field>" shell variables
|
||||
|
|
Loading…
Reference in a new issue