mirror of
https://github.com/dream-num/univer.git
synced 2026-09-01 15:29:43 +08:00
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
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 "actions@github.com"
|
|
git config --global user.name "GitHub Actions"
|
|
|
|
cd submodules/univer
|
|
git checkout dev
|
|
git pull
|
|
commit_hash=$(git log -1 --pretty=format:"%h")
|
|
|
|
cd ../../
|
|
pnpm install --no-frozen-lockfile
|
|
|
|
git add -A
|
|
git commit -m "chore(submodules): update submodules($commit_hash)" || exit 0
|
|
git push
|