1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-11-23 20:19:15 +01:00

Apply suggestions from code review

Co-authored-by: Usman <akeju00+github@gmail.com>
This commit is contained in:
Jack Bates 2023-10-06 06:25:44 -07:00 committed by GitHub
parent d48599a299
commit f787e7d544
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,10 +219,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
)
// Set default author
if (!await git.configExists('user.name', true) {
if (!await git.configExists('user.name', true)) {
await git.config('user.name', github.context.workflow, true)
}
if (!await git.configExists('user.email', true) {
if (!await git.configExists('user.email', true)) {
await git.config('user.email', 'github-actions@github.com', true)
}
} finally {