Skip to content

Commit

Permalink
fix: ensure gitCommitterEmail uses correct action input (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius authored Nov 24, 2020
1 parent 1802bb7 commit cef50da
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 16 deletions.
40 changes: 26 additions & 14 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function getInputs(): Promise<Inputs> {
gitTagGpgsign: /true/i.test(core.getInput('git-tag-gpgsign')),
gitPushGpgsign: /true/i.test(core.getInput('git-push-gpgsign')),
gitCommitterName: core.getInput('git-committer-name'),
gitCommitterEmail: core.getInput('git-committer-name'),
gitCommitterEmail: core.getInput('git-committer-email'),
workdir: core.getInput('workdir') || '.'
};
}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function run(): Promise<void> {
const userName = inputs.gitCommitterName || privateKey.name;

if (userEmail != privateKey.email) {
core.setFailed('Committer email does not match GPG key user address');
core.setFailed(`Committer email "${inputs.gitCommitterEmail}" (name: "${inputs.gitCommitterName}") does not match GPG private key email "${privateKey.email}" (name: "${privateKey.name}")`);
return;
}

Expand Down

0 comments on commit cef50da

Please sign in to comment.