File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15079,6 +15079,7 @@ var main = async () => {
15079
15079
await import_fs2.default.writeFileSync(outputFile, componentCodeString);
15080
15080
await (0, import_exec.exec)("git", ["add", outputFile]);
15081
15081
const diff = await execWithOutput("git", ["diff", "--exit-code", outputFile]);
15082
+ core.info(`diff: ${diff}`);
15082
15083
if (!diff) {
15083
15084
core.info("[INFO] No changes to the repo detected, exiting");
15084
15085
return;
@@ -15093,7 +15094,7 @@ function execWithOutput(command, options) {
15093
15094
(0, import_exec.exec)(command, options, {
15094
15095
listeners: {
15095
15096
stdout: function(res) {
15096
- resolve(res);
15097
+ resolve(res.toString() );
15097
15098
},
15098
15099
stderr: function(res) {
15099
15100
reject(res);
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const main = async () => {
31
31
32
32
await exec ( 'git' , [ 'add' , outputFile ] )
33
33
const diff = await execWithOutput ( 'git' , [ 'diff' , '--exit-code' , outputFile ] )
34
+ core . info ( `diff: ${ diff } ` )
34
35
if ( ! diff ) {
35
36
core . info ( '[INFO] No changes to the repo detected, exiting' )
36
37
return
@@ -49,7 +50,7 @@ function execWithOutput(command, options) {
49
50
exec ( command , options , {
50
51
listeners : {
51
52
stdout : function ( res ) {
52
- resolve ( res )
53
+ resolve ( res . toString ( ) )
53
54
} ,
54
55
stderr : function ( res ) {
55
56
reject ( res )
You can’t perform that action at this time.
0 commit comments