added filter option & tests

This commit is contained in:
Finley Garton 2023-06-30 17:12:38 +01:00
parent 96f53100ba
commit 99fc22de1f
No known key found for this signature in database
GPG key ID: 8D1E50A9A9B1C522
7 changed files with 46 additions and 1 deletions

View file

@ -82,6 +82,10 @@ export async function getInputs(): Promise<IGitSourceSettings> {
result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE'
core.debug(`clean = ${result.clean}`)
// Filter
result.filter = core.getInput('filter')
core.debug(`filter = ${result.filter}`)
// Sparse checkout
const sparseCheckout = core.getMultilineInput('sparse-checkout')
if (sparseCheckout.length) {