diff --git a/action.yml b/action.yml index fca07fb..9b3f5dc 100644 --- a/action.yml +++ b/action.yml @@ -107,6 +107,16 @@ inputs: description: "Git commit custom email" default: "" + COMMIT_USERNAME: + required: false + description: "Git commit custom username" + default: "" + + COMMIT_EMAIL: + required: false + description: "Git commit custom email" + default: "" + SHOW_UPDATED_DATE: required: false description: "Show updated date" diff --git a/main.py b/main.py index 62fa230..14d0c08 100644 --- a/main.py +++ b/main.py @@ -568,7 +568,7 @@ if __name__ == '__main__': rdmd = decode_readme(contents.content) new_readme = generate_new_readme(stats=waka_stats, readme=rdmd) if commit_by_me.lower() in truthy: - committer = InputGitAuthor(username, email) + committer = InputGitAuthor(username or commit_username, email or commit_email) else: committer = InputGitAuthor( commit_username or 'readme-bot',