1
0
mirror of https://github.com/one-among-us/data.git synced 2025-01-09 18:42:21 +08:00

[F] Fix preview action?

This commit is contained in:
Azalea 2025-01-02 19:08:29 +08:00 committed by GitHub
parent 57c9bcac4f
commit 7cacb199d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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({