mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 00:03:35 +00:00 
			
		
		
		
	Merge edb45c76ac78844c0daef0d81a24679d1993b3ea into fd47087372161c6f2a7b96d2ef87e944d89023ed
This commit is contained in:
		
						commit
						5139d5a9bb
					
				@ -82,7 +82,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
 | 
				
			|||||||
    # Default: true
 | 
					    # Default: true
 | 
				
			||||||
    persist-credentials: ''
 | 
					    persist-credentials: ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Relative path under $GITHUB_WORKSPACE to place the repository
 | 
					    # Path relative to $GITHUB_WORKSPACE to place the repository
 | 
				
			||||||
    path: ''
 | 
					    path: ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching
 | 
					    # Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching
 | 
				
			||||||
 | 
				
			|||||||
@ -49,7 +49,7 @@ inputs:
 | 
				
			|||||||
    description: 'Whether to configure the token or SSH key with the local git config'
 | 
					    description: 'Whether to configure the token or SSH key with the local git config'
 | 
				
			||||||
    default: true
 | 
					    default: true
 | 
				
			||||||
  path:
 | 
					  path:
 | 
				
			||||||
    description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
 | 
					    description: 'Path relative to $GITHUB_WORKSPACE to place the repository'
 | 
				
			||||||
  clean:
 | 
					  clean:
 | 
				
			||||||
    description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
 | 
					    description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
 | 
				
			||||||
    default: true
 | 
					    default: true
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										3
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@ -17093,9 +17093,6 @@ function getInputs() {
 | 
				
			|||||||
    // Repository path
 | 
					    // Repository path
 | 
				
			||||||
    result.repositoryPath = core.getInput('path') || '.';
 | 
					    result.repositoryPath = core.getInput('path') || '.';
 | 
				
			||||||
    result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
 | 
					    result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
 | 
				
			||||||
    if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
 | 
					 | 
				
			||||||
        throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    // Workflow repository?
 | 
					    // Workflow repository?
 | 
				
			||||||
    const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
 | 
					    const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
 | 
				
			||||||
        `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
 | 
					        `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
 | 
				
			||||||
 | 
				
			|||||||
@ -40,15 +40,6 @@ export function getInputs(): IGitSourceSettings {
 | 
				
			|||||||
    githubWorkspacePath,
 | 
					    githubWorkspacePath,
 | 
				
			||||||
    result.repositoryPath
 | 
					    result.repositoryPath
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
  if (
 | 
					 | 
				
			||||||
    !(result.repositoryPath + path.sep).startsWith(
 | 
					 | 
				
			||||||
      githubWorkspacePath + path.sep
 | 
					 | 
				
			||||||
    )
 | 
					 | 
				
			||||||
  ) {
 | 
					 | 
				
			||||||
    throw new Error(
 | 
					 | 
				
			||||||
      `Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`
 | 
					 | 
				
			||||||
    )
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Workflow repository?
 | 
					  // Workflow repository?
 | 
				
			||||||
  const isWorkflowRepository =
 | 
					  const isWorkflowRepository =
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user