From 132a2ef9e6d237ac8c2a6c112fecd68231883c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E7=92=9F?= Date: Thu, 8 Jun 2023 16:43:28 +0800 Subject: [PATCH] Update getDatafromContentful.yml --- .github/workflows/getDatafromContentful.yml | 50 --------------------- 1 file changed, 50 deletions(-) diff --git a/.github/workflows/getDatafromContentful.yml b/.github/workflows/getDatafromContentful.yml index a2e55ef2..ef6f7123 100644 --- a/.github/workflows/getDatafromContentful.yml +++ b/.github/workflows/getDatafromContentful.yml @@ -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