import * as core from '@actions/core'; export interface Inputs { gpgPrivateKey: string; passphrase: string; gitConfigGlobal: boolean; gitUserSigningkey: boolean; gitCommitGpgsign: boolean; gitTagGpgsign: boolean; gitPushGpgsign: string; gitCommitterName: string; gitCommitterEmail: string; workdir: string; fingerprint: string; } export async function getInputs(): Promise { return { gpgPrivateKey: core.getInput('gpg_private_key', {required: true}), passphrase: core.getInput('passphrase'), gitConfigGlobal: core.getBooleanInput('git_config_global'), gitUserSigningkey: core.getBooleanInput('git_user_signingkey'), gitCommitGpgsign: core.getBooleanInput('git_commit_gpgsign'), gitTagGpgsign: core.getBooleanInput('git_tag_gpgsign'), gitPushGpgsign: core.getInput('git_push_gpgsign') || 'if-asked', gitCommitterName: core.getInput('git_committer_name'), gitCommitterEmail: core.getInput('git_committer_email'), workdir: core.getInput('workdir') || '.', fingerprint: core.getInput('fingerprint') }; }