Skip to content

Commit

Permalink
Optimize deployment workflow in build-pr.yml: 修复预览链接的格式问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs committed Sep 19, 2024
1 parent 3e4b630 commit 97fe4b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/preview-pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ jobs:
script: |
const prNumber = context.payload.pull_request.number;
const previewUrl = `${{ steps.deploy.outputs.url }}`;
const comment = `🚀 预览部署完成!\
访问链接: ${previewUrl}`;
const comment = `🚀 预览部署完成!\n\n 访问链接: ${previewUrl}`;
github.rest.issues.createComment({
issue_number: prNumber,
owner: context.repo.owner,
Expand Down

0 comments on commit 97fe4b2

Please sign in to comment.