feat: git user now is action

This commit is contained in:
Simone Corsi 2021-01-16 11:17:46 +01:00
parent ab4322ea15
commit aa70ac99e3

View File

@ -12,12 +12,9 @@ export default new (class Git {
const githubToken = core.getInput('github-token', { required: true });
core.setSecret(githubToken);
const gitUserName = core.getInput('git-user-name');
const gitUserEmail = core.getInput('git-user-email');
// Set config
this.config('user.name', gitUserName);
this.config('user.email', gitUserEmail);
this.config('user.name', 'GitHub Actions');
this.config('user.email', 'actions@users.noreply.github.com');
// Update the origin
this.updateOrigin(