Skip to content

Commit

Permalink
fix: correct git author mismatch after execa removal
Browse files Browse the repository at this point in the history
  • Loading branch information
0-vortex committed May 16, 2023
1 parent 54740f6 commit e5ff93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ log.info(`Executing semantic-release config setup`);
!GIT_COMMITTER_EMAIL && (process.env.GIT_COMMITTER_EMAIL = "63161813+open-sauced[bot]@users.noreply.github.com");

try {
const { stdout: authorName } = execSync(`git log -1 --pretty=format:%an ${GITHUB_SHA}`);
const { stdout: authorEmail } = execSync(`git log -1 --pretty=format:%ae ${GITHUB_SHA}`);
const authorName = execSync(`git log -1 --pretty=format:%an ${GITHUB_SHA}`, { encoding: "utf8", stdio: "pipe" });
const authorEmail = execSync(`git log -1 --pretty=format:%ae ${GITHUB_SHA}`, { encoding: "utf8", stdio: "pipe" });
authorName && !GIT_AUTHOR_NAME && (process.env.GIT_AUTHOR_NAME = `${authorName}`);
authorEmail && !GIT_AUTHOR_EMAIL && (process.env.GIT_AUTHOR_EMAIL = `${authorEmail}`);
} catch (e) {
Expand Down

0 comments on commit e5ff93b

Please sign in to comment.