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