We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d8719b commit d66df51Copy full SHA for d66df51
src/utils/github.ts
@@ -73,7 +73,7 @@ const createBlob = async (filePath: string, octokit: GitHub, context: Context) =
73
const blob = await octokit.git.createBlob({
74
owner: context.repo.owner,
75
repo: context.repo.repo,
76
- content: isExists ? new Buffer(fs.readFileSync(file)).toString('base64') : '',
+ content: isExists ? Buffer.from(fs.readFileSync(file)).toString('base64') : '',
77
encoding: 'base64',
78
});
79
return ({path: filePath, sha: blob.data.sha});
0 commit comments