-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (48 loc) · 1.58 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Update Pages
on: workflow_dispatch
jobs:
download_feishu_pages:
name: Download feishu pages
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Use feishu pages cache
uses: actions/cache@v3
id: feishu_pages_export_cache
with:
path: ./feishu-pages/.cache
key: feishu_pages_export_cache_key
- 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
URL_STYLE: original
BASE_URL: ./
uses: longbridgeapp/feishu-pages@main
- uses: oven-sh/setup-bun@v1
- name: Copy feishu pages to repo
run: |
bun install
bun run setup
- name: Commit feishu pages to repo
run: |
git status
git add .
git config --global user.name "feishu-pages-bot"
git config --global user.email "[email protected]"
git commit -a -m "Update to export new feishu pages."
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: Update to export new feishu pages.
base: dev
branch: ${{github.ref_name}}
title: "[UPDATE] Export Feishu Pages"
body: |
New feishu pages version request review
assignees: ihavecoke