1
0
Fork 0
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:
Matthew Endsley 2022-10-28 20:20:33 -07:00
parent 925b9fdcfa
commit 0f6c54dea3
8 changed files with 38 additions and 9 deletions

View file

@ -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'))