Skip to content

Commit

Permalink
Merge pull request #7 from gentlementlegen/feat/generate-permit-action
Browse files Browse the repository at this point in the history
chore: updated action
  • Loading branch information
gentlementlegen authored Apr 1, 2024
2 parents 445d779 + 120e6fb commit 42acd22
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
yarn
output=$(yarn "start:sign")
url=$(echo $output | grep -o "https://[^ ]*" | sed -n '2p')
url=$(echo $output | grep -o "https://[^ ]*" | sed -n '2p' | tr -d '\r\n')
echo $output
echo "Permit available at the address:"
echo $url
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
return;
}
const issue_number = items[0].number;
console.info("Pull request number is", issue_number);
console.info('Pull request number is', issue_number);
if (!issue_number) {
console.log('Action not triggered from an issue, skipping.');
Expand All @@ -86,9 +86,8 @@ jobs:
let existingComment = comments.data.find(comment => comment.user.login === 'github-actions[bot]');
let body = `| Preview Deployment | [${sha}](${{ env.CLAIMABLE_URL }}) |\n| ------------------ | -------- |\n`;

// If the comment exists, append data to its body
// If the comment exists, update its body
if (existingComment) {
body = existingComment.body + '\n\n' + body;
await github.rest.issues.updateComment({
owner,
repo,
Expand Down

0 comments on commit 42acd22

Please sign in to comment.