mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
Update getDatafromContentful.yml
This commit is contained in:
parent
a942cd6800
commit
132a2ef9e6
1 changed files with 0 additions and 50 deletions
50
.github/workflows/getDatafromContentful.yml
vendored
50
.github/workflows/getDatafromContentful.yml
vendored
|
@ -2,18 +2,6 @@ name: Get Data Form Contentful
|
|||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
graphql-job:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Run GraphQL query
|
||||
uses: name: Get Data Form Contentful
|
||||
|
||||
on: workflow_dispatch
|
||||
|
||||
jobs:
|
||||
graphql-job:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -60,41 +48,3 @@ jobs:
|
|||
}
|
||||
result-encoding: string
|
||||
result-path: appmanage/static/json/catalog.json
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
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": "en-US"
|
||||
}
|
||||
url: https://graphql.contentful.com/content/v1/spaces/ffrhttfighww/environments/master
|
||||
headers: |
|
||||
{
|
||||
"Authorization": "Bearer ${{secrets.CONTENTFUL_TOKEN}}"
|
||||
}
|
||||
result-encoding: string
|
||||
result-path: appmanage/static/json/catalog.json
|
||||
|
|
Loading…
Reference in a new issue