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:
Diffstat (limited to 'src/input-helper.ts')
-rw-r--r--src/input-helper.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input-helper.ts b/src/input-helper.ts
index 40e6de4..8c2f901 100644
--- a/src/input-helper.ts
+++ b/src/input-helper.ts
@@ -122,5 +122,8 @@ export async function getInputs(): Promise<IGitSourceSettings> {
// Workflow organization ID
result.workflowOrganizationId = await workflowContextHelper.getOrganizationId()
+ // Set safe.directory in git global config.
+ result.setSafeDirectory =
+ (core.getInput('set-safe-directory') || 'true').toUpperCase() === 'TRUE'
return result
}