mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-12-25 20:52:06 -05:00
Use getBooleanInput
(#101)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
26351bcdb0
commit
0dd57a5e3b
2 changed files with 8 additions and 8 deletions
8
dist/index.js
generated
vendored
8
dist/index.js
generated
vendored
|
@ -44,10 +44,10 @@ function getInputs() {
|
|||
return {
|
||||
gpgPrivateKey: core.getInput('gpg-private-key', { required: true }),
|
||||
passphrase: core.getInput('passphrase'),
|
||||
gitUserSigningkey: /true/i.test(core.getInput('git-user-signingkey')),
|
||||
gitCommitGpgsign: /true/i.test(core.getInput('git-commit-gpgsign')),
|
||||
gitTagGpgsign: /true/i.test(core.getInput('git-tag-gpgsign')),
|
||||
gitPushGpgsign: /true/i.test(core.getInput('git-push-gpgsign')),
|
||||
gitUserSigningkey: core.getBooleanInput('git-user-signingkey'),
|
||||
gitCommitGpgsign: core.getBooleanInput('git-commit-gpgsign'),
|
||||
gitTagGpgsign: core.getBooleanInput('git-tag-gpgsign'),
|
||||
gitPushGpgsign: core.getBooleanInput('git-push-gpgsign'),
|
||||
gitCommitterName: core.getInput('git-committer-name'),
|
||||
gitCommitterEmail: core.getInput('git-committer-email'),
|
||||
workdir: core.getInput('workdir') || '.'
|
||||
|
|
|
@ -17,10 +17,10 @@ export async function getInputs(): Promise<Inputs> {
|
|||
return {
|
||||
gpgPrivateKey: core.getInput('gpg-private-key', {required: true}),
|
||||
passphrase: core.getInput('passphrase'),
|
||||
gitUserSigningkey: /true/i.test(core.getInput('git-user-signingkey')),
|
||||
gitCommitGpgsign: /true/i.test(core.getInput('git-commit-gpgsign')),
|
||||
gitTagGpgsign: /true/i.test(core.getInput('git-tag-gpgsign')),
|
||||
gitPushGpgsign: /true/i.test(core.getInput('git-push-gpgsign')),
|
||||
gitUserSigningkey: core.getBooleanInput('git-user-signingkey'),
|
||||
gitCommitGpgsign: core.getBooleanInput('git-commit-gpgsign'),
|
||||
gitTagGpgsign: core.getBooleanInput('git-tag-gpgsign'),
|
||||
gitPushGpgsign: core.getBooleanInput('git-push-gpgsign'),
|
||||
gitCommitterName: core.getInput('git-committer-name'),
|
||||
gitCommitterEmail: core.getInput('git-committer-email'),
|
||||
workdir: core.getInput('workdir') || '.'
|
||||
|
|
Loading…
Reference in a new issue