add debug lines

This commit is contained in:
Peter Evans committed 2024-08-27 21:20:44 +01:00
1 parent 7ccbe5d7c3
commit 8f257d093e
2 files changed
+4

No files matched your search

+2
View File
@@ -522,12 +522,14 @@ function createPullRequest(inputs) {
core.debug(`Changed files: '${JSON.stringify(changedFiles)}'`);
core.debug(`Deleted files: '${JSON.stringify(deletedFiles)}'`);
for (const file of changedFiles) {
core.debug(`Reading contents of file: '${file}'`);
fileChanges.additions.push({
path: file,
contents: btoa(fs.readFileSync(file, 'utf8'))
});
}
for (const file of deletedFiles) {
core.debug(`Marking file as deleted: '${file}'`);
fileChanges.deletions.push({
path: file
});
+2
View File
@@ -324,6 +324,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
core.debug(`Deleted files: '${JSON.stringify(deletedFiles)}'`)
for (const file of changedFiles) {
core.debug(`Reading contents of file: '${file}'`)
fileChanges.additions!.push({
path: file,
contents: btoa(fs.readFileSync(file, 'utf8'))
@@ -331,6 +332,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
}
for (const file of deletedFiles) {
core.debug(`Marking file as deleted: '${file}'`)
fileChanges.deletions!.push({
path: file
})