1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-12-27 04:55:52 +00:00
This commit is contained in:
eric sciple 2019-12-10 01:50:41 -05:00
parent bb56c8569a
commit 19fb09ae8f
2 changed files with 4 additions and 6 deletions

4
dist/index.js vendored
View file

@ -5101,8 +5101,8 @@ function getSource(settings) {
yield prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean); yield prepareExistingDirectory(git, settings.repositoryPath, repositoryUrl, settings.clean);
} }
if (!git || `${1}` == '1') { if (!git || `${1}` == '1') {
core.info(`Add git Git version ${gitCommandManager.MinimumGitVersion} was not found in the PATH.`); core.info(`Downloading the repository files using the GitHub REST API`);
core.info(`Instead downloading the repository files using the GitHub REST API.`); core.info(`To create a local repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`);
yield githubApiHelper.downloadRepository(settings.accessToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath); yield githubApiHelper.downloadRepository(settings.accessToken, settings.repositoryOwner, settings.repositoryName, settings.ref, settings.commit, settings.repositoryPath);
} }
else { else {

View file

@ -79,11 +79,9 @@ export async function getSource(settings: ISourceSettings): Promise<void> {
} }
if (!git || `${1}` == '1') { if (!git || `${1}` == '1') {
core.info(`Downloading the repository files using the GitHub REST API`)
core.info( core.info(
`Add git Git version ${gitCommandManager.MinimumGitVersion} was not found in the PATH.` `To create a local repository instead, add Git ${gitCommandManager.MinimumGitVersion} or higher to the PATH`
)
core.info(
`Instead downloading the repository files using the GitHub REST API.`
) )
await githubApiHelper.downloadRepository( await githubApiHelper.downloadRepository(
settings.accessToken, settings.accessToken,