mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
read to buffer not string and use non-legacy method to base64
This commit is contained in:
parent
7c0b09154e
commit
3e7e19f0eb
2 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue