mirror of
https://github.com/actions/checkout.git
synced 2026-07-08 19:03:47 +08:00
Compare commits
1 Commits
b4cf52bc50
...
copilot/re
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8da04f86f4 |
@@ -1,5 +1,4 @@
|
||||
import * as core from '@actions/core'
|
||||
import * as github from '@actions/github'
|
||||
import * as fsHelper from './fs-helper'
|
||||
import * as gitAuthHelper from './git-auth-helper'
|
||||
import * as gitCommandManager from './git-command-manager'
|
||||
@@ -297,14 +296,6 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
||||
settings.commit,
|
||||
settings.githubServerUrl
|
||||
)
|
||||
|
||||
// Set default author
|
||||
if (!await git.configExists('user.name', true)) {
|
||||
await git.config('user.name', github.context.workflow, true)
|
||||
}
|
||||
if (!await git.configExists('user.email', true)) {
|
||||
await git.config('user.email', 'github-actions@github.com', true)
|
||||
}
|
||||
} finally {
|
||||
// Remove auth
|
||||
if (authHelper) {
|
||||
|
||||
Reference in New Issue
Block a user