forked from dream-num/univer
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 971 Bytes
/
sync-pro.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
name: 🔫 Sync to Pro
on:
push:
branches: [dev]
jobs:
update-submodules:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: dream-num/univer-pro
token: ${{ secrets.GH_TOKEN }}
submodules: true
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Update submodules (univer)
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
cd submodules/univer
git checkout dev
git pull
cd ../../
pnpm install --no-frozen-lockfile
git add -A
git commit -m "chore(submodules): update submodules" || exit 0
git push