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: migrate the notification channel to the threads (#673)

白熱9e5a5bbfb3a3
diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml
index 2af14dd4a9..e7387297e0 100644
--- a/.github/workflows/preview-deploy.yml
+++ b/.github/workflows/preview-deploy.yml
@@ -193,7 +193,7 @@ jobs:
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
+ 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 }}
@@ -217,7 +217,7 @@ jobs:
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
+ 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 }}
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index c9e9bd98e3..31ba2390d9 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -253,7 +253,7 @@ jobs:
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
+ webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_NIGHTLY_RELEASE }}
status: ${{ job.status }}
description: |
🌝 Nightly release: Successful
@@ -282,7 +282,7 @@ jobs:
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
+ webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_NIGHTLY_RELEASE }}
status: ${{ job.status }}
description: |
🌚 Nightly release: Unsuccessful 💩
diff --git a/.github/workflows/release-unstable.yml b/.github/workflows/release-unstable.yml
index 6841ea7b50..ba2a7b7d87 100644
--- a/.github/workflows/release-unstable.yml
+++ b/.github/workflows/release-unstable.yml
@@ -184,7 +184,7 @@ jobs:
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
+ webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_UNSTABLE_RELEASE }}
status: ${{ job.status }}
description: |
🎉 Unstable release: Successful
@@ -213,7 +213,7 @@ jobs:
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
- webhook: ${{ secrets.DISCORD_WEBHOOK }}
+ webhook: ${{ secrets.DISCORD_WEBHOOK }}?thread_id=${{ secrets.DISCORD_CI_UNSTABLE_RELEASE }}
status: ${{ job.status }}
description: |
💥 Ustable release: Unsuccessful 💩