Git config fix.
This commit is contained in:
@@ -175,8 +175,11 @@ async function run() {
|
||||
try {
|
||||
if (context.eventName === 'push') {
|
||||
const payload = context.payload as PushEvent;
|
||||
await exec.exec('git', ['config', 'user.email', payload.pusher.email!]);
|
||||
await exec.exec('git', ['config', 'user.name', payload.pusher.name!]);
|
||||
const pusherEmail = payload.pusher.email ?? `${context.actor}@users.noreply.github.com`;
|
||||
const pusherName = payload.pusher.name ?? context.actor;
|
||||
|
||||
await exec.exec('git', ['config', 'user.email', pusherEmail]);
|
||||
await exec.exec('git', ['config', 'user.name', pusherName]);
|
||||
|
||||
|
||||
await improveCommitMessages(payload.commits);
|
||||
|
||||
Reference in New Issue
Block a user