Update getDatafromContentful.yml

This commit is contained in:
赵璟 2023-06-08 17:54:45 +08:00 committed by GitHub
parent 11f81d5c1f
commit b5676b4cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,7 @@ jobs:
CONTENTFUL_TOKEN: ${{ secrets.CONTENTFUL_GRAPHQLTOKEN }} CONTENTFUL_TOKEN: ${{ secrets.CONTENTFUL_GRAPHQLTOKEN }}
LOCALES: "en-US,zh-CN" LOCALES: "en-US,zh-CN"
run: | run: |
mkdir -p appmanage/static/json
IFS=',' read -ra LOCALE_ARRAY <<< "$LOCALES" IFS=',' read -ra LOCALE_ARRAY <<< "$LOCALES"
for LOCALE in "${LOCALE_ARRAY[@]}"; do for LOCALE in "${LOCALE_ARRAY[@]}"; do
curl -X POST \ curl -X POST \