codereview: define a git-user slug instead of a true/false config

This commit is contained in:
Nicolas Schweitzer 2025-01-21 18:50:25 +01:00
parent f3b199b7ed
commit 5fba9eb899
No known key found for this signature in database
7 changed files with 32 additions and 14 deletions

View file

@ -138,9 +138,8 @@ export async function getInputs(): Promise<IGitSourceSettings> {
// Auth token
result.authToken = core.getInput('token', {required: true})
// Configure user
result.configureUser =
(core.getInput('configure-user') || 'true').toUpperCase() === 'TRUE'
// Git user
result.gitUser = core.getInput('git-user') || 'github-action[bot]'
// SSH
result.sshKey = core.getInput('ssh-key')