Skip to content

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.

ci: update ci

白熱bfd86c1bdf44
diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml
index 495722075a..af363641ba 100644
--- a/.github/workflows/preview-deploy.yml
+++ b/.github/workflows/preview-deploy.yml
@@ -153,47 +153,11 @@ jobs:
needs: [setup, build-demo, build-storybook]
steps:
- # ================= Notify Discord =================
- - name: 👾 Discord Notification
- uses: sarisia/actions-status-discord@v1
- if: ${{ success() }}
+ - name: Invoke deployment hook
+ uses: distributhor/workflow-webhook@v3
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ needs.setup.outputs.ref != '' && secrets.DISCORD_CI_PR || secrets.DISCORD_CI_DEV }}
- status: ${{ job.status }}
- description: |
- Ref: ${{ needs.setup.outputs.ref }}
-
- 🏆 CI Pipeline: Success
- **[View Deployment]**
- - [📑 Examples](${{ needs.build-demo.outputs.preview-url }}/)
-
- **[View Storybook]**
- - [📚 Storybook](${{ needs.build-storybook.outputs.preview-url }}/)
- nofail: false
- nodetail: false
- nocontext: false
- noprefix: true
- color: 0x00b894
- username: GitHub Actions
-
- - name: 👾 Discord Notification
- uses: sarisia/actions-status-discord@v1
- if: ${{ failure() }}
- with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ needs.setup.outputs.ref != '' && secrets.DISCORD_CI_PR || secrets.DISCORD_CI_DEV }}
- status: ${{ job.status }}
- description: |
- Ref: ${{ needs.setup.outputs.ref }}
-
- 📛 CI Pipeline: Unsuccessful
- **[PR ID]**
- #${{ needs.setup.outputs.id }}
- nofail: false
- nodetail: false
- nocontext: false
- noprefix: true
- color: 0xd63031
- username: GitHub Actions
+ webhook_url: ${{ secrets.WEBHOOK_URL }}
+ data: '{"type":"build","preview":{"examples":"${{ needs.build-demo.outputs.preview-url }}/","storybook":"${{ needs.build-storybook.outputs.preview-url }}/"}}'
# ================= Create Comment =================
- name: 🧽 Find And Delete Comment
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index f002d5cd6a..f2d617d8a8 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -1,6 +1,7 @@
name: 🥷 Release Nightly
on:
+ workflow_dispatch:
schedule:
- cron: '0 16 * * *'
@@ -8,42 +9,6 @@ permissions:
contents: read
jobs:
- settlement:
- if: github.repository == 'dream-num/univer'
- runs-on: ubuntu-latest
-
- steps:
- - name: ✨ Fetch repo status
- id: repo-status
- run: |
- status=$(curl -s https://api.github.com/repos/${{ github.repository }})
- stars=$(echo $status | jq .stargazers_count)
- forks=$(echo $status | jq .forks_count)
- issues=$(echo $status | jq .open_issues_count)
-
- echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT
- echo "stars=$stars" >> $GITHUB_OUTPUT
- echo "forks=$forks" >> $GITHUB_OUTPUT
- echo "issues=$issues" >> $GITHUB_OUTPUT
-
- - name: 👾 Daily settlement
- uses: sarisia/actions-status-discord@v1
- with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_NIGHTLY_RELEASE }}
- status: ${{ job.status }}
- description: |
- 🚀 Daily settlement (${{ steps.repo-status.outputs.date }})
-
- - 🌟 Stars: ${{ steps.repo-status.outputs.stars }}
- - 🍴 Forks: ${{ steps.repo-status.outputs.forks }}
- - 🤖 Issues + PRs: ${{ steps.repo-status.outputs.issues }}
- nofail: false
- nodetail: true
- nocontext: true
- noprefix: true
- color: 0x0984e3
- username: Daily Settlement
-
release-nightly:
if: github.repository == 'dream-num/univer'
runs-on: ubuntu-latest
@@ -155,51 +120,8 @@ jobs:
if: ${{ always() }}
steps:
- # ================= Notify Discord =================
- - name: 👾 Discord Notification
- uses: sarisia/actions-status-discord@v1
- if: ${{ success() }}
- with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_NIGHTLY_RELEASE }}
- status: ${{ job.status }}
- description: |
- 🌝 Nightly release: Successful
-
- 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉
- Release version: ${{ needs.release-nightly.outputs.version }}
-
- **[View Deployment]**
- - [📑 Examples](${{ needs.build-demo.outputs.preview-url }}/)
-
- **[View Docs]**
- - [📚 Storybook](${{ needs.build-storybook.outputs.preview-url }}/)
- 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉
-
- Have a good dream! 🌙
- nofail: false
- nodetail: false
- nocontext: false
- noprefix: true
- color: 0x00b894
- username: Nightly Release
-
- - name: 👾 Discord Notification
- uses: sarisia/actions-status-discord@v1
- if: ${{ failure() }}
+ - name: Invoke deployment hook
+ uses: distributhor/workflow-webhook@v3
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_NIGHTLY_RELEASE }}
- status: ${{ job.status }}
- description: |
- 🌚 Nightly release: Unsuccessful 💩
-
- 👿 👿 👿 👿 👿 👿 👿 👿 👿
- Failed version: ${{ needs.release-nightly.outputs.version }}
- 👿 👿 👿 👿 👿 👿 👿 👿 👿
-
- Don't worry, tomorrow will be better! 🌞
- nofail: false
- nodetail: false
- nocontext: false
- noprefix: true
- color: 0xd63031
- username: Nightly Release
+ webhook_url: ${{ secrets.WEBHOOK_URL }}
+ data: '{"type":"release","version": "${{ needs.release-nightly.outputs.version }}","preview":{"examples":"${{ needs.build-demo.outputs.preview-url }}/","storybook":"${{ needs.build-storybook.outputs.preview-url }}/"}}'
diff --git a/.github/workflows/release-unstable.yml b/.github/workflows/release-unstable.yml
index 9172584a6e..dae3c9c664 100644
--- a/.github/workflows/release-unstable.yml
+++ b/.github/workflows/release-unstable.yml
@@ -124,51 +124,8 @@ jobs:
if: ${{ always() }}
steps:
- # ================= Notify Discord =================
- - name: 👾 Discord Notification
- uses: sarisia/actions-status-discord@v1
- if: ${{ success() }}
+ - name: Invoke deployment hook
+ uses: distributhor/workflow-webhook@v3
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_UNSTABLE_RELEASE }}
- status: ${{ job.status }}
- description: |
- 🎉 Unstable release: Successful
-
- 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉
- Release version: ${{ github.ref_name }}
-
- **[View Deployment]**
- - [📑 Examples](${{ needs.build-demo.outputs.preview-url }}/)
-
- **[View Docs]**
- - [📚 Storybook](${{ needs.build-storybook.outputs.preview-url }}/)
- 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉
-
- Have a good dream! 🌙
- nofail: false
- nodetail: false
- nocontext: false
- noprefix: true
- color: 0x00b894
- username: Unstable Release
-
- - name: 👾 Discord Notification
- uses: sarisia/actions-status-discord@v1
- if: ${{ failure() }}
- with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_UNSTABLE_RELEASE }}
- status: ${{ job.status }}
- description: |
- 💥 Ustable release: Unsuccessful 💩
-
- 👿 👿 👿 👿 👿 👿 👿 👿 👿
- Failed version: ${{ github.ref_name }}
- 👿 👿 👿 👿 👿 👿 👿 👿 👿
-
- Oops! Something went wrong. 😭
- nofail: false
- nodetail: false
- nocontext: false
- noprefix: true
- color: 0xd63031
- username: Unstable Release
+ webhook_url: ${{ secrets.WEBHOOK_URL }}
+ data: '{"type":"release","version": "${{ github.ref_name }}","preview":{"examples":"${{ needs.build-demo.outputs.preview-url }}/","storybook":"${{ needs.build-storybook.outputs.preview-url }}/"}}'