Update getDatafromContentful.yml

This commit is contained in:
赵璟 2023-06-09 08:52:58 +08:00 committed by GitHub
parent 19c5e51692
commit f85b0589b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ jobs:
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data-raw '{"query":"query($locale: String){catalog(id: "2Yp0TY3kBHgG6VDjsHZNpK",locale:$locale) {linkedFrom(allowedLocales:["en-US"]) {catalogCollection(limit:20) {items {key position title linkedFrom(allowedLocales:["en-US"]) {catalogCollection(limit:20) {items {key title position}}}}}}}}","variables":{"locale":"'"$LOCALE"'"}}' \
--data-raw '{"query":"query($locale: String){catalog(id: \"2Yp0TY3kBHgG6VDjsHZNpK\",locale:$locale) {linkedFrom(allowedLocales:[\"en-US\"]) {catalogCollection(limit:20) {items {key position title linkedFrom(allowedLocales:[\"en-US\"]) {catalogCollection(limit:20) {items {key title position}}}}}}}}","variables":{"locale":"\"$LOCALE\""}}' \
https://graphql.contentful.com/content/v1/spaces/ffrhttfighww > appmanage/static/json/catalog_$LOCALE.json
done