Update index

This commit is contained in:
CrazyMax 2020-05-12 20:48:57 +02:00
parent ca42309c9d
commit 07f2f56021
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
2 changed files with 4 additions and 4 deletions

2
dist/index.js generated vendored
View file

@ -1062,8 +1062,8 @@ function run() {
core.info('🛒 Setting outputs...');
core.setOutput('fingerprint', privateKey.fingerprint);
core.setOutput('keyid', privateKey.keyID);
core.setOutput('email', privateKey.email);
core.setOutput('name', privateKey.name);
core.setOutput('email', privateKey.email);
if (git_user_signingkey) {
core.info('🔐 Setting GPG signing keyID for this Git repository');
yield git.setConfig('user.signingkey', privateKey.keyID);

View file

@ -57,15 +57,15 @@ async function run(): Promise<void> {
core.info('🛒 Setting outputs...');
core.setOutput('fingerprint', privateKey.fingerprint);
core.setOutput('keyid', privateKey.keyID);
core.setOutput('email', privateKey.email);
core.setOutput('name', privateKey.name);
core.setOutput('email', privateKey.email);
if (git_user_signingkey) {
core.info('🔐 Setting GPG signing keyID for this Git repository');
await git.setConfig('user.signingkey', privateKey.keyID);
const user_email = git_committer_email || privateKey.email
const user_name = git_committer_name || privateKey.name
const user_email = git_committer_email || privateKey.email;
const user_name = git_committer_name || privateKey.name;
if (git_committer_email != privateKey.email) {
core.setFailed('Committer email does not match GPG key user address');