mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-11-25 14:31:03 -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 {
|
return {
|
||||||
gpgPrivateKey: core.getInput('gpg-private-key', { required: true }),
|
gpgPrivateKey: core.getInput('gpg-private-key', { required: true }),
|
||||||
passphrase: core.getInput('passphrase'),
|
passphrase: core.getInput('passphrase'),
|
||||||
gitUserSigningkey: /true/i.test(core.getInput('git-user-signingkey')),
|
gitUserSigningkey: core.getBooleanInput('git-user-signingkey'),
|
||||||
gitCommitGpgsign: /true/i.test(core.getInput('git-commit-gpgsign')),
|
gitCommitGpgsign: core.getBooleanInput('git-commit-gpgsign'),
|
||||||
gitTagGpgsign: /true/i.test(core.getInput('git-tag-gpgsign')),
|
gitTagGpgsign: core.getBooleanInput('git-tag-gpgsign'),
|
||||||
gitPushGpgsign: /true/i.test(core.getInput('git-push-gpgsign')),
|
gitPushGpgsign: core.getBooleanInput('git-push-gpgsign'),
|
||||||
gitCommitterName: core.getInput('git-committer-name'),
|
gitCommitterName: core.getInput('git-committer-name'),
|
||||||
gitCommitterEmail: core.getInput('git-committer-email'),
|
gitCommitterEmail: core.getInput('git-committer-email'),
|
||||||
workdir: core.getInput('workdir') || '.'
|
workdir: core.getInput('workdir') || '.'
|
||||||
|
|
|
@ -17,10 +17,10 @@ export async function getInputs(): Promise<Inputs> {
|
||||||
return {
|
return {
|
||||||
gpgPrivateKey: core.getInput('gpg-private-key', {required: true}),
|
gpgPrivateKey: core.getInput('gpg-private-key', {required: true}),
|
||||||
passphrase: core.getInput('passphrase'),
|
passphrase: core.getInput('passphrase'),
|
||||||
gitUserSigningkey: /true/i.test(core.getInput('git-user-signingkey')),
|
gitUserSigningkey: core.getBooleanInput('git-user-signingkey'),
|
||||||
gitCommitGpgsign: /true/i.test(core.getInput('git-commit-gpgsign')),
|
gitCommitGpgsign: core.getBooleanInput('git-commit-gpgsign'),
|
||||||
gitTagGpgsign: /true/i.test(core.getInput('git-tag-gpgsign')),
|
gitTagGpgsign: core.getBooleanInput('git-tag-gpgsign'),
|
||||||
gitPushGpgsign: /true/i.test(core.getInput('git-push-gpgsign')),
|
gitPushGpgsign: core.getBooleanInput('git-push-gpgsign'),
|
||||||
gitCommitterName: core.getInput('git-committer-name'),
|
gitCommitterName: core.getInput('git-committer-name'),
|
||||||
gitCommitterEmail: core.getInput('git-committer-email'),
|
gitCommitterEmail: core.getInput('git-committer-email'),
|
||||||
workdir: core.getInput('workdir') || '.'
|
workdir: core.getInput('workdir') || '.'
|
||||||
|
|
Loading…
Reference in a new issue