Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/input-helper.ts
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-12 13:49:26 -0500
committerGitHub <noreply@github.com>2019-12-12 13:49:26 -0500
commitca3a763d5ed9e04331c8a6aea85ddabcb3a6aa4d (patch)
tree236058d4a2be4208412dc3ed294e2db566aab7d6 /src/input-helper.ts
parent25ac60e43ded675f082e10f444b0ad95ea43622e (diff)
add input persist-credentials (#107)
Diffstat (limited to 'src/input-helper.ts')
-rw-r--r--src/input-helper.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input-helper.ts b/src/input-helper.ts
index d7d8779..56b58f2 100644
--- a/src/input-helper.ts
+++ b/src/input-helper.ts
@@ -97,8 +97,12 @@ export function getInputs(): ISourceSettings {
result.lfs = (core.getInput('lfs') || 'false').toUpperCase() === 'TRUE'
core.debug(`lfs = ${result.lfs}`)
- // Access token
- result.accessToken = core.getInput('token')
+ // Auth token
+ result.authToken = core.getInput('token')
+
+ // Persist credentials
+ result.persistCredentials =
+ (core.getInput('persist-credentials') || 'false').toUpperCase() === 'TRUE'
return result
}