mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-08-26 12:27:02 -04:00
Fix inputs
This commit is contained in:
parent
e097cc9691
commit
5701df18ba
4 changed files with 14 additions and 5 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
13
action.yml
13
action.yml
|
@ -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
2
dist/index.js
generated
vendored
|
@ -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');
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue