diff --git a/dist/index.js b/dist/index.js index a8b75617..6ff254bc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1069,7 +1069,7 @@ function run() { yield git.setConfig('user.signingkey', privateKey.keyID); const user_email = git_committer_email || privateKey.email; const user_name = git_committer_name || privateKey.name; - if (git_committer_email != privateKey.email) { + if (user_email != privateKey.email) { core.setFailed('Committer email does not match GPG key user address'); return; } diff --git a/src/main.ts b/src/main.ts index 07e2ed8f..222f5c74 100644 --- a/src/main.ts +++ b/src/main.ts @@ -67,7 +67,7 @@ async function run(): Promise { const user_email = git_committer_email || privateKey.email; const user_name = git_committer_name || privateKey.name; - if (git_committer_email != privateKey.email) { + if (user_email != privateKey.email) { core.setFailed('Committer email does not match GPG key user address'); return; }