@@ -1789,9 +1789,11 @@ const { Toolkit } = __webpack_require__(461);
17891789
17901790// Get config
17911791const GH_USERNAME = core.getInput("GH_USERNAME");
1792+ const COMMIT_NAME = core.getInput("COMMIT_NAME");
1793+ const COMMIT_EMAIL = core.getInput("COMMIT_EMAIL");
17921794const COMMIT_MSG = core.getInput("COMMIT_MSG");
17931795const MAX_LINES = core.getInput("MAX_LINES");
1794- const TARGET_FILE = core.getInput("TARGET_FILE") || "README.md" ;
1796+ const TARGET_FILE = core.getInput("TARGET_FILE");
17951797
17961798/**
17971799 * Returns the sentence case representation
@@ -1853,13 +1855,8 @@ const exec = (cmd, args = []) =>
18531855 */
18541856
18551857const commitFile = async () => {
1856- await exec("git", [
1857- "config",
1858- "--global",
1859- "user.email",
1860- "41898282+github-actions[bot]@users.noreply.github.com",
1861- ]);
1862- await exec("git", ["config", "--global", "user.name", "readme-bot"]);
1858+ await exec("git", ["config", "--global", "user.email", COMMIT_EMAIL]);
1859+ await exec("git", ["config", "--global", "user.name", COMMIT_NAME]);
18631860 await exec("git", ["add", TARGET_FILE]);
18641861 await exec("git", ["commit", "-m", COMMIT_MSG]);
18651862 await exec("git", ["push"]);
0 commit comments