File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -522,12 +522,14 @@ function createPullRequest(inputs) {
522
522
core.debug(`Changed files: '${JSON.stringify(changedFiles)}'`);
523
523
core.debug(`Deleted files: '${JSON.stringify(deletedFiles)}'`);
524
524
for (const file of changedFiles) {
525
+ core.debug(`Reading contents of file: '${file}'`);
525
526
fileChanges.additions.push({
526
527
path: file,
527
528
contents: btoa(fs.readFileSync(file, 'utf8'))
528
529
});
529
530
}
530
531
for (const file of deletedFiles) {
532
+ core.debug(`Marking file as deleted: '${file}'`);
531
533
fileChanges.deletions.push({
532
534
path: file
533
535
});
Original file line number Diff line number Diff line change @@ -324,13 +324,15 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
324
324
core . debug ( `Deleted files: '${ JSON . stringify ( deletedFiles ) } '` )
325
325
326
326
for ( const file of changedFiles ) {
327
+ core . debug ( `Reading contents of file: '${ file } '` )
327
328
fileChanges . additions ! . push ( {
328
329
path : file ,
329
330
contents : btoa ( fs . readFileSync ( file , 'utf8' ) )
330
331
} )
331
332
}
332
333
333
334
for ( const file of deletedFiles ) {
335
+ core . debug ( `Marking file as deleted: '${ file } '` )
334
336
fileChanges . deletions ! . push ( {
335
337
path : file
336
338
} )
You can’t perform that action at this time.
0 commit comments