3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-04-24 12:25:34 +00:00

feat(git config): Set default user.name and user.email in git config

This commit is contained in:
Nicolas Schweitzer 2024-12-19 15:30:48 +01:00
parent cbb722410c
commit f3b199b7ed
No known key found for this signature in database
6 changed files with 26 additions and 4 deletions

3
dist/index.js vendored
View file

@ -1813,6 +1813,9 @@ function getInputs() {
core.debug(`recursive submodules = ${result.nestedSubmodules}`);
// Auth token
result.authToken = core.getInput('token', { required: true });
// Configure user
result.configureUser =
(core.getInput('configure-user') || 'true').toUpperCase() === 'TRUE'
// SSH
result.sshKey = core.getInput('ssh-key');
result.sshKnownHosts = core.getInput('ssh-known-hosts');