Fix inputs

This commit is contained in:
CrazyMax 2020-05-06 01:21:41 +02:00
parent e097cc9691
commit 5701df18ba
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
4 changed files with 14 additions and 5 deletions

View file

@ -37,7 +37,7 @@ jobs:
name: Import GPG private key
uses: ./
with:
git_user_gpgsign: true
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
git_push_gpgsign: true

View file

@ -7,8 +7,17 @@ branding:
icon: 'lock'
inputs:
git_gpgsign:
description: 'Enable signing for this Git repository'
git_user_signingkey:
description: 'Set GPG signing keyID for this Git repository'
default: 'false'
git_commit_gpgsign:
description: 'Sign all commits automatically. git_user_signingkey needs to be enabled'
default: 'false'
git_tag_gpgsign:
description: 'Sign all tags automatically. git_user_signingkey needs to be enabled'
default: 'false'
git_push_gpgsign:
description: 'Sign all pushes automatically. git_user_signingkey needs to be enabled'
default: 'false'
git_committer_name:
description: 'Commit author''s name'

2
dist/index.js generated vendored
View file

@ -1023,10 +1023,10 @@ function run() {
core.setFailed('GPG private key required');
return;
}
const git_user_signingkey = /true/i.test(core.getInput('git_user_signingkey'));
const git_commit_gpgsign = /true/i.test(core.getInput('git_commit_gpgsign'));
const git_tag_gpgsign = /true/i.test(core.getInput('git_tag_gpgsign'));
const git_push_gpgsign = /true/i.test(core.getInput('git_push_gpgsign'));
const git_user_signingkey = /true/i.test(core.getInput('git_user_signingkey'));
const git_committer_name = core.getInput('git_committer_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
const git_committer_email = core.getInput('git_committer_email') || `${git_committer_name}@users.noreply.github.com`;
core.info('📣 GnuPG info');

View file

@ -11,10 +11,10 @@ async function run(): Promise<void> {
return;
}
const git_user_signingkey = /true/i.test(core.getInput('git_user_signingkey'));
const git_commit_gpgsign = /true/i.test(core.getInput('git_commit_gpgsign'));
const git_tag_gpgsign = /true/i.test(core.getInput('git_tag_gpgsign'));
const git_push_gpgsign = /true/i.test(core.getInput('git_push_gpgsign'));
const git_user_signingkey = /true/i.test(core.getInput('git_user_signingkey'));
const git_committer_name: string =
core.getInput('git_committer_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
const git_committer_email: string =