diff --git a/dist/index.js b/dist/index.js index f91dadb1..b5e8d9c0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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') || '.' diff --git a/src/context.ts b/src/context.ts index 8b80e1c7..e309e34d 100644 --- a/src/context.ts +++ b/src/context.ts @@ -17,10 +17,10 @@ export async function getInputs(): Promise { 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') || '.'