mirror of
https://github.com/actions/checkout.git
synced 2025-07-12 08:40:45 +00:00
Add clean-exclude input
This allows clients to ignore specific paths from the clean phase of the checkout.
This commit is contained in:
parent
925b9fdcfa
commit
0f6c54dea3
8 changed files with 38 additions and 9 deletions
|
@ -81,6 +81,8 @@ export async function getInputs(): Promise<IGitSourceSettings> {
|
|||
// Clean
|
||||
result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE'
|
||||
core.debug(`clean = ${result.clean}`)
|
||||
result.cleanExclude = (core.getInput('clean-exclude') || '').split(',')
|
||||
core.debug(`cleanExclude = ${JSON.stringify(result.cleanExclude)}`)
|
||||
|
||||
// Fetch depth
|
||||
result.fetchDepth = Math.floor(Number(core.getInput('fetch-depth') || '1'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue