From 06280b78863fd4d7a045d3c16fe449490b25a9d0 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 13 May 2020 00:31:51 +0200 Subject: [PATCH] Committer email does not match --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a8b7561..6ff254b 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 07e2ed8..222f5c7 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; }