From 6b8a7b727d2432792199c4862baf235d8901823d Mon Sep 17 00:00:00 2001 From: 1ilsang <1ilsang@naver.com> Date: Mon, 10 Jun 2024 14:11:53 +0900 Subject: [PATCH] chore(actions): Mege body comments --- .github/actions/netlify-preview/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/netlify-preview/action.yml b/.github/actions/netlify-preview/action.yml index c65d46fc..d1a558a9 100644 --- a/.github/actions/netlify-preview/action.yml +++ b/.github/actions/netlify-preview/action.yml @@ -73,19 +73,20 @@ runs: return; } const prevActionBot = await getExistPrevActionBot(issueNumber); + const body = `Preview URL: ${process.env.NETLIFY_PREVIEW_URL}`; if (prevActionBot?.id) { await github.rest.issues.updateComment({ owner, repo, comment_id: prevActionBot.id, - body: `Preview URL: ${process.env.NETLIFY_PREVIEW_URL}` + body }); } else { await github.rest.issues.createComment({ owner, repo, issue_number: issueNumber, - body: `Preview URL: ${process.env.NETLIFY_PREVIEW_URL}` + body }); } }