Skip to content

Commit f1d7317

Browse files
committed
btoa expects a string not a buffer
1 parent ed155e5 commit f1d7317

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ function createPullRequest(inputs) {
525525
core.debug(`Reading contents of file: '${file}'`);
526526
fileChanges.additions.push({
527527
path: file,
528-
contents: btoa(fs.readFileSync(file, 'utf8'))
528+
contents: btoa(fs.readFileSync(file, 'utf8').toString())
529529
});
530530
}
531531
for (const file of deletedFiles) {

src/create-pull-request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
327327
core.debug(`Reading contents of file: '${file}'`)
328328
fileChanges.additions!.push({
329329
path: file,
330-
contents: btoa(fs.readFileSync(file, 'utf8'))
330+
contents: btoa(fs.readFileSync(file, 'utf8').toString())
331331
})
332332
}
333333

0 commit comments

Comments
 (0)