diff --git a/dist/index.js b/dist/index.js index 52f21e4..ddf2b3d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1728,7 +1728,10 @@ function getInputs() { result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE'; core.debug(`clean = ${result.clean}`); // Filter - result.filter = core.getInput('filter'); + const filter = core.getInput('filter'); + if (filter) { + result.filter = filter; + } core.debug(`filter = ${result.filter}`); // Sparse checkout const sparseCheckout = core.getMultilineInput('sparse-checkout'); diff --git a/src/input-helper.ts b/src/input-helper.ts index 6626979..e546c19 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -83,7 +83,11 @@ export async function getInputs(): Promise { core.debug(`clean = ${result.clean}`) // Filter - result.filter = core.getInput('filter') + const filter = core.getInput('filter') + if (filter) { + result.filter = filter + } + core.debug(`filter = ${result.filter}`) // Sparse checkout