From 7cacb199d19b8f325dba1945560ae94540149258 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:08:29 +0800 Subject: [PATCH] [F] Fix preview action? --- .github/workflows/preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 7bfc738f..2cb9e32f 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -42,8 +42,8 @@ jobs: with: script: | const prNumber = context.payload.pull_request.number; - const now = new Date().toISOString(); - const reviewBody = `🐱 感谢贡献!\n\n部署了预览,在这里哦: https://${prNumber}.data-preview.pages.dev\n\n🕒 最后更新: ${now}`; + const now = new Date().toISOString().substring(0, 19).replace('T', ' '); + const reviewBody = `🐱 感谢贡献!\n\n部署了预览,在这里哦: https://pr-${prNumber}.data-preview.pages.dev\n\n🕒 最后更新: ${now} (UTC)`; // 获取现有 review const { data: reviews } = await github.rest.pulls.listReviews({