Skip to content

Commit

Permalink
[F] Fix preview action?
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna authored Jan 2, 2025
1 parent 57c9bca commit 7cacb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 7cacb19

Please sign in to comment.