mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-11-29 00:11:02 -05: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
|
name: Import GPG private key
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
git_user_gpgsign: true
|
git_user_signingkey: true
|
||||||
git_commit_gpgsign: true
|
git_commit_gpgsign: true
|
||||||
git_tag_gpgsign: true
|
git_tag_gpgsign: true
|
||||||
git_push_gpgsign: true
|
git_push_gpgsign: true
|
||||||
|
|
13
action.yml
13
action.yml
|
@ -7,8 +7,17 @@ branding:
|
||||||
icon: 'lock'
|
icon: 'lock'
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
git_gpgsign:
|
git_user_signingkey:
|
||||||
description: 'Enable signing for this Git repository'
|
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'
|
default: 'false'
|
||||||
git_committer_name:
|
git_committer_name:
|
||||||
description: 'Commit author''s 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');
|
core.setFailed('GPG private key required');
|
||||||
return;
|
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_commit_gpgsign = /true/i.test(core.getInput('git_commit_gpgsign'));
|
||||||
const git_tag_gpgsign = /true/i.test(core.getInput('git_tag_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_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_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`;
|
const git_committer_email = core.getInput('git_committer_email') || `${git_committer_name}@users.noreply.github.com`;
|
||||||
core.info('📣 GnuPG info');
|
core.info('📣 GnuPG info');
|
||||||
|
|
|
@ -11,10 +11,10 @@ async function run(): Promise<void> {
|
||||||
return;
|
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_commit_gpgsign = /true/i.test(core.getInput('git_commit_gpgsign'));
|
||||||
const git_tag_gpgsign = /true/i.test(core.getInput('git_tag_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_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 =
|
const git_committer_name: string =
|
||||||
core.getInput('git_committer_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
|
core.getInput('git_committer_name') || process.env['GITHUB_ACTOR'] || 'github-actions';
|
||||||
const git_committer_email: string =
|
const git_committer_email: string =
|
||||||
|
|
Loading…
Reference in a new issue