Skip to content

Commit

Permalink
[action]Fix async demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Sep 25, 2023
1 parent 1e2d91c commit a6b3432
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/sync-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
# 将 demo/src/routes/+page.svelte 内的 "'../../../packages/stdf/components'" 替换为 "'stdf/lang/en_US'"
# 将 demo/src/routes/en_US/**/+page.svelte 内的 "'../../../../../packages/stdf/components'" 替换为 "'stdf'"
# 将 demo/src/routes/zh_CN/**/+page.svelte 内的 "'../../../../../packages/stdf/components'" 替换为 "'stdf'"
# 将 demo/tailwind.config.js 内的 "'../packages/stdf/**/*.svelte'" 替换为 "./node_modules/stdf/**/*.svelte'"
# 将 demo 目录下的所有文件提交到本地仓库,提交信息为 Github Actions auto commit: update demo from stdf.
- name: Init stdf demo
run: |
Expand All @@ -63,6 +64,7 @@ jobs:
sed -i 's#../../../packages/stdf/components#stdf#' src/routes/+page.svelte
sed -i 's#../../../../../packages/stdf/components#stdf#' src/routes/en_US/**/+page.svelte
sed -i 's#../../../../../packages/stdf/components#stdf#' src/routes/zh_CN/**/+page.svelte
sed -i 's#../packages/stdf/**/*.svelte#./node_modules/stdf/**/*.svelte#' tailwind.config.js
git add .
git commit -m "Github Actions auto commit: update demo from stdf."
Expand Down

0 comments on commit a6b3432

Please sign in to comment.