Update getDatafromContentful.yml

This commit is contained in:
赵璟 2023-06-08 15:59:54 +08:00 committed by GitHub
parent dac06dbe1f
commit f3c1526129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,9 +10,7 @@ jobs:
uses: actions/checkout@v2
- name: Run GraphQL query
uses: octokit/graphql-action@v2.2.24
env:
CONTENTFUL_TOKEN: ${{ secrets.CONTENTFUL_TOKEN }}
uses: octokit/graphql-action@v3.5.2
with:
query: |
query($locale: String){
@ -41,5 +39,10 @@ jobs:
{
"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