Skip to content

Commit d031362

Browse files
author
Amelia Wattenbeger
committed
log diff
1 parent 161aa2e commit d031362

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15079,6 +15079,7 @@ var main = async () => {
1507915079
await import_fs2.default.writeFileSync(outputFile, componentCodeString);
1508015080
await (0, import_exec.exec)("git", ["add", outputFile]);
1508115081
const diff = await execWithOutput("git", ["diff", "--exit-code", outputFile]);
15082+
core.info(`diff: ${diff}`);
1508215083
if (!diff) {
1508315084
core.info("[INFO] No changes to the repo detected, exiting");
1508415085
return;
@@ -15093,7 +15094,7 @@ function execWithOutput(command, options) {
1509315094
(0, import_exec.exec)(command, options, {
1509415095
listeners: {
1509515096
stdout: function(res) {
15096-
resolve(res);
15097+
resolve(res.toString());
1509715098
},
1509815099
stderr: function(res) {
1509915100
reject(res);

src/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const main = async () => {
3131

3232
await exec('git', ['add', outputFile])
3333
const diff = await execWithOutput('git', ['diff', '--exit-code', outputFile])
34+
core.info(`diff: ${diff}`)
3435
if (!diff) {
3536
core.info('[INFO] No changes to the repo detected, exiting')
3637
return
@@ -49,7 +50,7 @@ function execWithOutput(command, options) {
4950
exec(command, options, {
5051
listeners: {
5152
stdout: function (res) {
52-
resolve(res)
53+
resolve(res.toString())
5354
},
5455
stderr: function (res) {
5556
reject(res)

0 commit comments

Comments
 (0)