From 79d4d2fb22aa2a0f4c39958661cdeb1d364a52fd Mon Sep 17 00:00:00 2001 From: Netfan Date: Sun, 12 Jan 2025 11:58:07 +0800 Subject: [PATCH 1/3] ci: retry deploy while faild --- .github/workflows/deploy.yml | 17 +++++++++++++++++ .github/workflows/rerun.yml | 19 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/rerun.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 533a87c3..b4afdd93 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -153,3 +153,20 @@ jobs: username: ${{ secrets.WEB_NAIVE_FTP_ACCOUNT }} password: ${{ secrets.WEB_NAIVE_FTP_PASSWORD }} local-dir: ./apps/web-naive/dist/ + + rerun-on-failure: + name: Rerun on failure + needs: + - deploy-playground-ftp + - deploy-docs-ftp + - deploy-antd-ftp + - deploy-ele-ftp + - deploy-naive-ftp + if: failure() && fromJSON(github.run_attempt) < 10 + runs-on: ubuntu-latest + steps: + - name: Retry ${{ fromJSON(github.run_attempt) }} of 10 + env: + GH_REPO: ${{ github.repository }} + GH_TOKEN: ${{ github.token }} + run: gh workflow run rerun.yml -F run_id=${{ github.run_id }} diff --git a/.github/workflows/rerun.yml b/.github/workflows/rerun.yml new file mode 100644 index 00000000..2b462551 --- /dev/null +++ b/.github/workflows/rerun.yml @@ -0,0 +1,19 @@ +name: Rerun workflow + +on: + workflow_dispatch: + inputs: + run_id: + description: The workflow id to relanch + required: true +jobs: + rerun: + runs-on: ubuntu-latest + steps: + - name: rerun ${{ inputs.run_id }} + env: + GH_REPO: ${{ github.repository }} + GH_TOKEN: ${{ github.token }} + run: | + gh run watch ${{ inputs.run_id }} > /dev/null 2>&1 + gh run rerun ${{ inputs.run_id }} --failed From 8cf6e8ec7502864cc35577a4bfa9956873f1b9fc Mon Sep 17 00:00:00 2001 From: Netfan Date: Sun, 12 Jan 2025 14:48:05 +0800 Subject: [PATCH 2/3] style: popover bgColor is too close to common (#5364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复Dark主题下,弹出层的背景色与主体背景色太过接近的问题 --- packages/@core/base/design/src/design-tokens/dark.css | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/@core/base/design/src/design-tokens/dark.css b/packages/@core/base/design/src/design-tokens/dark.css index 2a1d052f..d34541e9 100644 --- a/packages/@core/base/design/src/design-tokens/dark.css +++ b/packages/@core/base/design/src/design-tokens/dark.css @@ -15,7 +15,11 @@ --card-foreground: 210 40% 98%; /* Background color for popovers such as , , */ - --popover: 222.82deg 8.43% 12.27%; + + /* --popover: 222.82deg 8.43% 12.27%; */ + + /* 弹出层的背景色与主题区域背景色太过接近 */ + --popover: 0 0 14.2%; --popover-foreground: 210 40% 98%; /* Muted backgrounds such as , and */ From 42e322012c991b0f9fb0cd14542616b416c5f2e3 Mon Sep 17 00:00:00 2001 From: Netfan Date: Sun, 12 Jan 2025 15:43:44 +0800 Subject: [PATCH 3/3] fix: spinner may stop playing animation after dismiss (#5365) * fix: spinner may stop playing animation after dismiss * fix: animation paused more safely --- .../shadcn-ui/src/components/spinner/spinner.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/spinner/spinner.vue b/packages/@core/ui-kit/shadcn-ui/src/components/spinner/spinner.vue index a72ed49f..58eab2eb 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/components/spinner/spinner.vue +++ b/packages/@core/ui-kit/shadcn-ui/src/components/spinner/spinner.vue @@ -73,12 +73,23 @@ function onTransitionEnd() { @transitionend="onTransitionEnd" >