Git config fix.
Testing / prettier (push) Failing after 2m17s
Testing / unit-test (20.x) (push) Failing after 4m36s
Testing / e2e-test (20.x) (push) Failing after 5m36s

This commit is contained in:
2026-01-01 15:33:24 -05:00
parent 86f35c1268
commit 7500392653
2 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -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);