Skip to content

Commit

Permalink
...dd
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Nov 2, 2023
1 parent 0735a84 commit b90710c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/download_feishu_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,36 @@ on:
jobs:
download_feishu_pages:
name: Download feishu pages
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- uses: oven-sh/setup-bun@v1
- name: Start export feishu pages
env:
FEISHU_APP_ID: ${{ secrets.FEISHU_APP_ID }}
FEISHU_APP_SECRET: ${{ secrets.FEISHU_APP_SECRET }}
FEISHU_SPACE_ID: "7288219896826494980"
OUTPUT_DIR: ./feishu-pages
uses: longbridgeapp/feishu-pages@main
- uses: oven-sh/setup-bun@v1
- name: Copy feishu pages to repo
run: |
bun install
./scripts/cp_feishu_to_vitepress.sh
bun export
bun autocorrect --fix locales/
bun translate
ls -al .
echo ${{github.workspace}}
- name: Commit feishu pages to repo
run: |
echo ${{github.workspace}}
git status
git add .
git config --global user.name "LongPort Github CI"
git config --global user.email "[email protected]"
git commit -a -m "Commit feishu pages to repo"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
Expand Down
1 change: 1 addition & 0 deletions scripts/export
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
bun feishu-pages
mkdir -p locales/en/docs locales/zh-HK/docs
cp -r feishu-pages/docs/en/* locales/en/docs/
cp -r feishu-pages/docs/zh-HK/* locales/zh-HK/docs/
cp feishu-pages/docs.json locales/

0 comments on commit b90710c

Please sign in to comment.