Commit 7b4c4be 1 parent cc3b522 commit 7b4c4be Copy full SHA for 7b4c4be
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20456,7 +20456,7 @@ const exec = (cmd, args = []) =>
20456
20456
if (code !== 0 && !stdout.includes("nothing to commit")) {
20457
20457
return reject(new Error(`Exit code: ${code}\n${stdout}`));
20458
20458
}
20459
- return resolve({ code, stdout } );
20459
+ return resolve(stdout);
20460
20460
});
20461
20461
20462
20462
app.on("error", () => reject(new Error(`Exit code: ${code}\n${stderr}`)));
@@ -20485,7 +20485,7 @@ const commitFile = async (emptyCommit = false) => {
20485
20485
* @returns {Promise<void>}
20486
20486
* */
20487
20487
const createEmptyCommit = async () => {
20488
- const { stdout: lastCommitDate } = await exec("git", [
20488
+ const lastCommitDate = await exec("git", [
20489
20489
"--no-pager",
20490
20490
"log",
20491
20491
"-1",
@@ -20497,7 +20497,7 @@ const createEmptyCommit = async () => {
20497
20497
(new Date() - commitDate) / (1000 * 60 * 60 * 24),
20498
20498
);
20499
20499
20500
- core.debug(`Last commit date: ${commitDate}`)
20500
+ core.debug(`Last commit date: ${commitDate}`);
20501
20501
core.debug(`Difference in days: ${diffInDays}`);
20502
20502
20503
20503
if (diffInDays > 50) {
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ const exec = (cmd, args = []) =>
77
77
if ( code !== 0 && ! stdout . includes ( "nothing to commit" ) ) {
78
78
return reject ( new Error ( `Exit code: ${ code } \n${ stdout } ` ) ) ;
79
79
}
80
- return resolve ( { code , stdout } ) ;
80
+ return resolve ( stdout ) ;
81
81
} ) ;
82
82
83
83
app . on ( "error" , ( ) => reject ( new Error ( `Exit code: ${ code } \n${ stderr } ` ) ) ) ;
@@ -106,7 +106,7 @@ const commitFile = async (emptyCommit = false) => {
106
106
* @returns {Promise<void> }
107
107
* */
108
108
const createEmptyCommit = async ( ) => {
109
- const { stdout : lastCommitDate } = await exec ( "git" , [
109
+ const lastCommitDate = await exec ( "git" , [
110
110
"--no-pager" ,
111
111
"log" ,
112
112
"-1" ,
You can’t perform that action at this time.
0 commit comments