Skip to content

Commit

Permalink
chore: changed empty string init to a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Apr 1, 2024
1 parent 0359ae8 commit 3f57be8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
// Find the comment to update or create a new one if not found
let existingComment = comments.data.find(comment => comment.user.login === 'github-actions[bot]');
let body = '';
let body = '| Preview Deployment |\n| ------------------ |\n';

// If the comment exists, update its body
if (existingComment) {
Expand All @@ -101,7 +101,6 @@ jobs:
}
} else {
// Create a new comment if no existing comment is found
body = '| Preview Deployment |\n| ------------------ |\n';
body += `| [${sha}](${{ env.CLAIMABLE_URL }}) |\n`;
await github.rest.issues.createComment({
owner,
Expand Down

0 comments on commit 3f57be8

Please sign in to comment.