mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update getDatafromContentful.yml
This commit is contained in:
parent
64a6e3bc03
commit
ab08a4a7a8
1 changed files with 2 additions and 1 deletions
3
.github/workflows/getDatafromContentful.yml
vendored
3
.github/workflows/getDatafromContentful.yml
vendored
|
@ -20,7 +20,8 @@ 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
|
||||
|
||||
- name: Commit and push changes
|
||||
|
|
Loading…
Reference in a new issue