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 uses: actions/checkout@v2
- name: Run GraphQL query - name: Run GraphQL query
uses: octokit/graphql-action@v2.2.24 uses: octokit/graphql-action@v3.5.2
env:
CONTENTFUL_TOKEN: ${{ secrets.CONTENTFUL_TOKEN }}
with: with:
query: | query: |
query($locale: String){ query($locale: String){
@ -41,5 +39,10 @@ jobs:
{ {
"locale": "en-US" "locale": "en-US"
} }
url: https://graphql.contentful.com/content/v1/spaces/ffrhttfighww/environments/master
headers: |
{
"Authorization": "Bearer ${{secrets.CONTENTFUL_TOKEN}}"
}
result-encoding: string result-encoding: string
result-path: appmanage/static/json/catalog.json result-path: appmanage/static/json/catalog.json