/
input-parameters.ts
99 lines (97 loc) · 3.11 KB
/
input-parameters.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import {getBooleanInput, getInput} from '@actions/core'
export interface InputParameters {
apiKey: string
cancelOnTimeout: boolean
channel: string
configFile: string
debug: boolean
defaultPackageVersion: boolean
deployAt: string
deployTo: string
deploymentCheckSleepCycle: string
deploymentTimeout: string
excludeMachines: string
force: boolean
forcePackageDownload: boolean
guidedFailure: string
ignoreChannelRules: boolean
ignoreExisting: boolean
ignoreSslErrors: boolean
logLevel: string
noDeployAfter: string
noRawLog: boolean
package: string
packagePrerelease: string
packageVersion: string
packagesFolder: string
password: string
progress: boolean
project: string
proxy: string
proxyPassword: string
proxyUsername: string
rawLogFile: string
releaseNotes: string
releaseNotesFile: string
releaseNumber: string
server: string
skip: string
space: string
specificMachines: string
tenant: string
tenantTag: string
timeout: string
username: string
variable: string
waitForDeployment: boolean
whatIf: boolean
}
export function get(): InputParameters {
return {
apiKey: getInput('api_key'),
cancelOnTimeout: getBooleanInput('cancel_on_timeout'),
channel: getInput('channel'),
configFile: getInput('config_file'),
debug: getBooleanInput('debug'),
defaultPackageVersion: getBooleanInput('default_package_version'),
deployAt: getInput('deploy_at'),
deployTo: getInput('deploy_to'),
deploymentCheckSleepCycle: getInput('deployment_check_sleep_cycle'),
deploymentTimeout: getInput('deployment_timeout'),
excludeMachines: getInput('exclude_machines'),
force: getBooleanInput('force'),
forcePackageDownload: getBooleanInput('force_package_download'),
guidedFailure: getInput('guided_failure'),
ignoreChannelRules: getBooleanInput('ignore_channel_rules'),
ignoreExisting: getBooleanInput('ignore_existing'),
ignoreSslErrors: getBooleanInput('ignore_ssl_errors'),
logLevel: getInput('log_level'),
noDeployAfter: getInput('no_deploy_after'),
noRawLog: getBooleanInput('no_raw_log'),
package: getInput('package'),
packagePrerelease: getInput('package_prerelease'),
packageVersion: getInput('package_version'),
packagesFolder: getInput('packages_folder'),
password: getInput('password'),
progress: getBooleanInput('progress'),
project: getInput('project'),
proxy: getInput('proxy'),
proxyPassword: getInput('proxy_password'),
proxyUsername: getInput('proxy_username'),
rawLogFile: getInput('raw_log_file'),
releaseNotes: getInput('release_notes'),
releaseNotesFile: getInput('release_notes_file'),
releaseNumber: getInput('release_number'),
server: getInput('server'),
skip: getInput('skip'),
space: getInput('space'),
specificMachines: getInput('specific_machines'),
tenant: getInput('tenant'),
tenantTag: getInput('tenant_tag'),
timeout: getInput('timeout'),
username: getInput('user'),
variable: getInput('variable'),
waitForDeployment: getBooleanInput('wait_for_deployment'),
whatIf: getBooleanInput('what_if')
}
}