Skip to content

Commit e5bf483

Browse files
committed
make sure comment markdown comes from action
1 parent 28702d7 commit e5bf483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function renderComment(data) {
5858
const octokit = github.getOctokit(GITHUB_TOKEN, {log: console});
5959
const context = github.context;
6060

61-
let markdown = await ejs.renderFile('./templates/comment.md', data);
61+
let markdown = await ejs.renderFile(`${__dirname}/templates/comment.md`, data);
6262
markdown
6363
.replace(/\%/g, '%25')
6464
.replace(/\n/g, '%0A')

0 commit comments

Comments
 (0)