Skip to content

Commit d66df51

Browse files
chore: fix warning
1 parent 1d8719b commit d66df51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const createBlob = async (filePath: string, octokit: GitHub, context: Context) =
7373
const blob = await octokit.git.createBlob({
7474
owner: context.repo.owner,
7575
repo: context.repo.repo,
76-
content: isExists ? new Buffer(fs.readFileSync(file)).toString('base64') : '',
76+
content: isExists ? Buffer.from(fs.readFileSync(file)).toString('base64') : '',
7777
encoding: 'base64',
7878
});
7979
return ({path: filePath, sha: blob.data.sha});

0 commit comments

Comments
 (0)