Update media.yml

add catalog position for product
This commit is contained in:
赵璟 2024-01-25 08:32:57 +08:00 committed by GitHub
parent 1a789661e0
commit 1420363663
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,where:{appStore:true,production: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}}}}}}}", "variables":{"locale":"'$LOCALE'", "skip":'$SKIP'}}' \ -d '{"query":"query($locale: String,$skip: Int){productCollection(locale:$locale,where:{appStore:true,production: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')
@ -75,4 +75,4 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: media name: media
path: media.zip path: media.zip