Skip to content

Commit

Permalink
fix update changes output
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 20, 2024
1 parent 8c9bbba commit 2caead7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ export async function run(): Promise<void> {
'git config --global user.email "[email protected]"',
"git add -A",
'git commit -m "[automated commit] lint format and import sort"',
"git push",
"git brokenSTRING push",
// "git push",
],
});

Expand Down
5 changes: 5 additions & 0 deletions src/scripts/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ export const updateChanges = async (
setFailed(`Failed to execute command "${cmd}": ${error as string}`);
response.error = true;
response = await buildComment(response, error.message, command.label);
return;
});
}
}

if (response.error === false) {
response = await buildComment(response, "", command.label);
}

return response;
};

0 comments on commit 2caead7

Please sign in to comment.