mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-05-14 10:32:42 +00:00
read to buffer not string and use non-legacy method to base64
This commit is contained in:
@@ -327,7 +327,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||
core.debug(`Reading contents of file: '${file}'`)
|
||||
fileChanges.additions!.push({
|
||||
path: file,
|
||||
contents: btoa(fs.readFileSync(file, 'utf8'))
|
||||
contents: fs.readFileSync(file).toString('base64')
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user