Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Oct 22, 2023
1 parent a0b2721 commit b2a6de6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ ${result.newItems
const filename = basename(item);
console.log(join(baseUrl, 'actual', filename));
return `| ![NewItem](https://raw.githubusercontent.com/bokuweb/reg-actions/reg/6602169287_reg/actual/sample.png) |`;
return `| ![NewItem](${join(baseUrl, 'actual', filename)}) |`;
})
.join('\n')}
`;
Expand Down
24 changes: 14 additions & 10 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,19 @@ export const run = async (event: Event, runId: number, sha: string, client: Clie
});
}

const comment = createCommentWithTarget({
event,
runId,
sha,
targetRun,
result,
artifactName: config.artifactName,
regBranch: 'reg',
});
setTimeout(async () => {
const comment = createCommentWithTarget({
event,
runId,
sha,
targetRun,
result,
artifactName: config.artifactName,
regBranch: 'reg',
});

await client.postComment(event.number, comment);
if (event.number != null) {
await client.postComment(event.number, comment);
}
}, 3000);
};

0 comments on commit b2a6de6

Please sign in to comment.