mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 16:21:32 +00:00
Update getDatafromContentful.yml
This commit is contained in:
parent
3887fa3055
commit
15307304cf
18
.github/workflows/getDatafromContentful.yml
vendored
18
.github/workflows/getDatafromContentful.yml
vendored
|
@ -13,18 +13,20 @@ jobs:
|
||||||
uses: octokit/graphql-action@v2.2.24
|
uses: octokit/graphql-action@v2.2.24
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CONTENTFUL_URL: https://graphql.contentful.com/content/v1/spaces/ffrhttfighww/environments/master
|
||||||
|
CONTENTFUL_TOKEN: ${{ secrets.CONTENTFUL_TOKEN }}
|
||||||
with:
|
with:
|
||||||
query: |
|
query: |
|
||||||
query($locale: String){
|
query($locale: String) {
|
||||||
catalog(id: "2Yp0TY3kBHgG6VDjsHZNpK",locale:$locale) {
|
catalog(id: "2Yp0TY3kBHgG6VDjsHZNpK", locale: $locale) {
|
||||||
linkedFrom(allowedLocales:["en-US"]) {
|
linkedFrom(allowedLocales: ["en-US"]) {
|
||||||
catalogCollection(limit:20) {
|
catalogCollection(limit: 20) {
|
||||||
items {
|
items {
|
||||||
key
|
key
|
||||||
position
|
position
|
||||||
title
|
title
|
||||||
linkedFrom(allowedLocales:["en-US"]) {
|
linkedFrom(allowedLocales: ["en-US"]) {
|
||||||
catalogCollection(limit:20) {
|
catalogCollection(limit: 20) {
|
||||||
items {
|
items {
|
||||||
key
|
key
|
||||||
title
|
title
|
||||||
|
@ -37,14 +39,14 @@ jobs:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
variables: |
|
variables: |
|
||||||
{
|
{
|
||||||
"locale": "en-US"
|
"locale": "en-US"
|
||||||
}
|
}
|
||||||
url: https://graphql.contentful.com/content/v1/spaces/ffrhttfighww/environments/master
|
|
||||||
headers: |
|
headers: |
|
||||||
{
|
{
|
||||||
"Authorization": "Bearer ${{secrets.CONTENTFUL_TOKEN}}"
|
"Authorization": "Bearer $CONTENTFUL_TOKEN"
|
||||||
}
|
}
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
result-path: appmanage/static/json/catalog.json
|
result-path: appmanage/static/json/catalog.json
|
||||||
|
|
Loading…
Reference in a new issue