mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-25 17:10:27 +00:00
Update media_dev.yml
This commit is contained in:
parent
a123468e30
commit
7117a8dbe4
1 changed files with 1 additions and 1 deletions
2
.github/workflows/media_dev.yml
vendored
2
.github/workflows/media_dev.yml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
||||||
RESPONSE=$(curl -X POST \
|
RESPONSE=$(curl -X POST \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $ACCESS_TOKEN" \
|
-H "Authorization: Bearer $ACCESS_TOKEN" \
|
||||||
-d '{"query":"query($locale: String,$skip: Int){productCollection(locale:$locale,limit: '$LIMIT', skip: $skip) {total items {sys {id} key hot trademark summary overview websiteurl description screenshots distribution vcpu memory storage logo {imageurl} catalogCollection(limit:15) {items {key title catalogCollection(limit:5){items{key title position}}}}}}}", "variables":{"locale":"'$LOCALE'", "skip":'$SKIP'}}' \
|
-d '{"query":"query($locale: String,$skip: Int){productCollection(locale:$locale,where:{appStore:true},limit: '$LIMIT', skip: $skip) {total items {sys {id} key hot trademark summary overview websiteurl description screenshots distribution vcpu memory storage logo {imageurl} catalogCollection(limit:15) {items {key title catalogCollection(limit:5){items{key title position}}}}}}}", "variables":{"locale":"'$LOCALE'", "skip":'$SKIP'}}' \
|
||||||
https://graphql.contentful.com/content/v1/spaces/ffrhttfighww)
|
https://graphql.contentful.com/content/v1/spaces/ffrhttfighww)
|
||||||
ITEMS+=($(echo $RESPONSE | jq '.data.productCollection.items[]'))
|
ITEMS+=($(echo $RESPONSE | jq '.data.productCollection.items[]'))
|
||||||
TOTAL=$(echo $RESPONSE | jq '.data.productCollection.total')
|
TOTAL=$(echo $RESPONSE | jq '.data.productCollection.total')
|
||||||
|
|
Loading…
Reference in a new issue