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: allow bot to update PR comment (#259)
白熱450e17fd245b
diff --git a/.github/workflows/ci-preview.yml b/.github/workflows/ci-preview.ymlindex 9b6a4160e7..a5ab58e9ff 100644--- a/.github/workflows/ci-preview.yml+++ b/.github/workflows/ci-preview.yml@@ -1,8 +1,6 @@name: 📦 CI Previewon:- push:- branches: [main, dev]pull_request:branches: [main, dev]@@ -96,16 +94,22 @@ jobs:color: 0xd63031username: GitHub Actions- - name: 📝 Comment PR- uses: actions/github-script@v6+ - name: 🧽 Find And Delete Comment+ uses: peter-evans/find-comment@v2+ id: fc+ with:+ issue-number: ${{ github.event.pull_request.number }}+ comment-author: 'github-actions[bot]'+ body-includes: View Deployment++ - name: 📝 Create or update comment+ uses: peter-evans/create-or-update-comment@v3with:- script: |- github.rest.issues.createComment({- issue_number: context.issue.number,- owner: context.repo.owner,- repo: context.repo.repo,- body: `**[View Deployment]**\n` +- `- [📝 Doc](${{ steps.vercel-action.outputs.preview-url }}/doc/)\n` +- `- [📊 Sheet](${{ steps.vercel-action.outputs.preview-url }}/sheet/)\n` +- `- [📽️ Slide](${{ steps.vercel-action.outputs.preview-url }}/slide/)`- })+ comment-id: ${{ steps.fc.outputs.comment-id }}+ issue-number: ${{ github.event.pull_request.number }}+ body: |+ **[View Deployment]**+ - [📝 Doc](${{ steps.vercel-action.outputs.preview-url }}/doc/)+ - [📊 Sheet](${{ steps.vercel-action.outputs.preview-url }}/sheet/)+ - [📽️ Slide](${{ steps.vercel-action.outputs.preview-url }}/slide/)+ edit-mode: replace