Skip to content

Commit ed155e5

Browse files
committed
add debug lines
1 parent d0860be commit ed155e5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dist/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,14 @@ function createPullRequest(inputs) {
522522
core.debug(`Changed files: '${JSON.stringify(changedFiles)}'`);
523523
core.debug(`Deleted files: '${JSON.stringify(deletedFiles)}'`);
524524
for (const file of changedFiles) {
525+
core.debug(`Reading contents of file: '${file}'`);
525526
fileChanges.additions.push({
526527
path: file,
527528
contents: btoa(fs.readFileSync(file, 'utf8'))
528529
});
529530
}
530531
for (const file of deletedFiles) {
532+
core.debug(`Marking file as deleted: '${file}'`);
531533
fileChanges.deletions.push({
532534
path: file
533535
});

src/create-pull-request.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,15 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
324324
core.debug(`Deleted files: '${JSON.stringify(deletedFiles)}'`)
325325

326326
for (const file of changedFiles) {
327+
core.debug(`Reading contents of file: '${file}'`)
327328
fileChanges.additions!.push({
328329
path: file,
329330
contents: btoa(fs.readFileSync(file, 'utf8'))
330331
})
331332
}
332333

333334
for (const file of deletedFiles) {
335+
core.debug(`Marking file as deleted: '${file}'`)
334336
fileChanges.deletions!.push({
335337
path: file
336338
})

0 commit comments

Comments
 (0)