Skip to content

Commit

Permalink
Add auto create pull request action script
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Nov 2, 2023
1 parent d562149 commit 23a5359
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/sync-feishu-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Sync feishu pages to local
on:
push:
branches:
- feishu/*
jobs:
sync_feishu_pages:
name: download
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- 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 vitepress
run: |
echo $(date) > test.txt
# bun install
# ./scripts/cp_feishu_to_vitepress.sh
# bun autocorrect --fix locales/
# bun translate
- name: Commit all changed files
run: |
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:
commit-message: New feishu pages version request review
base: canary
delete-branch: true
title: '[Docs] New feishu pages version request review'
body: |
New feishu pages version request review
assignees: ihavecoke


0 comments on commit 23a5359

Please sign in to comment.