Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
ci: dispatch univer-pro sync on dev updates (#6694)
白熱20e876718033
diff --git a/.github/workflows/sync-pro.yml b/.github/workflows/sync-pro.ymlindex 84d0e29e8e..8ede8d2c06 100644--- a/.github/workflows/sync-pro.yml+++ b/.github/workflows/sync-pro.yml@@ -6,34 +6,19 @@ on:- devjobs:- update-submodules:+ dispatch-sync:if: github.repository == 'dream-num/univer'runs-on: ubuntu-lateststeps:- - name: Checkout- uses: actions/checkout@v4+ - name: Dispatch sync event to univer-pro+ uses: peter-evans/repository-dispatch@v2with:repository: dream-num/univer-protoken: ${{ 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- 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+ event-type: sync-univer+ client-payload: >+ {+ "ref": "${{ github.ref_name }}",+ "sha": "${{ github.sha }}"+ }