mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-05-14 02:22:41 +00:00
read to buffer not string and use non-legacy method to base64
This commit is contained in:
Vendored
+1
-1
@@ -525,7 +525,7 @@ function createPullRequest(inputs) {
|
||||
core.debug(`Reading contents of file: '${file}'`);
|
||||
fileChanges.additions.push({
|
||||
path: file,
|
||||
contents: btoa(fs.readFileSync(file, 'utf8'))
|
||||
contents: fs.readFileSync(file).toString('base64')
|
||||
});
|
||||
}
|
||||
for (const file of deletedFiles) {
|
||||
|
||||
Reference in New Issue
Block a user