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: fix daily settlement (#679)

白熱625e5f9c5768
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index 68d8fec129..673052f18e 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -8,6 +8,42 @@ 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
@@ -242,57 +278,13 @@ jobs:
# vercel-org-id: ${{ secrets.ORG_ID }}
# vercel-project-id: ${{ secrets.PROJECT_ID_DOCUSAURUS }}
- settlement:
- if: github.repository == 'dream-num/univer'
- runs-on: ubuntu-latest
- outputs:
- stars: ${{ steps.repo-status.outputs.stars }}
- forks: ${{ steps.repo-status.outputs.forks }}
- issues: ${{ steps.repo-status.outputs.issues }}
-
- env:
- TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
- TURBO_TEAM: ${{ vars.TURBO_TEAM }}
-
- 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 "release_type=$stars" >> $GITHUB_OUTPUT
- echo "release_type=$forks" >> $GITHUB_OUTPUT
- echo "release_type=$issues" >> $GITHUB_OUTPUT
-
notify:
- needs: [release-nightly, build-demo, build-storybook, settlement]
+ needs: [release-nightly, build-demo, build-storybook]
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
# ================= Notify Discord =================
-
- - 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
-
- - 🌟 Stars: ${{ needs.settlement.outputs.stars }}
- - 🍴 Forks: ${{ needs.settlement.outputs.forks }}
- - 🤖 Issues: ${{ needs.settlement.outputs.issues }}
- nofail: false
- nodetail: true
- nocontext: true
- noprefix: true
- color: 0x0984e3
- username: Daily Settlement
-
- name: 👾 Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
diff --git a/packages/core/src/services/log/log.service.ts b/packages/core/src/services/log/log.service.ts
index 0b9f31b5b1..1c46535ada 100644
--- a/packages/core/src/services/log/log.service.ts
+++ b/packages/core/src/services/log/log.service.ts
@@ -26,7 +26,7 @@ export class DesktopLogService extends Disposable implements ILogService {
private _logLevel: LogLevel = LogLevel.SILENT;
log(...args: any[]): void {
- if (this._logLevel >= LogLevel.VERBOSE || !args.length) {
+ if (this._logLevel < LogLevel.VERBOSE || !args.length) {
return;
}