1
0
Fork 0

Allow excluding files and folders when caching

Signed-off-by: Jon Koops <jonkoops@gmail.com>
pull/1854/head
Jon Koops 2024-10-16 16:22:14 +02:00
parent 29d342f176
commit 50c5576020
1 changed files with 1 additions and 3 deletions

View File

@ -46,9 +46,7 @@ export function getArchiveFileSizeInBytes(filePath: string): number {
export async function resolvePaths(patterns: string[]): Promise<string[]> {
const paths: string[] = []
const workspace = process.env['GITHUB_WORKSPACE'] ?? process.cwd()
const globber = await glob.create(patterns.join('\n'), {
implicitDescendants: false
})
const globber = await glob.create(patterns.join('\n'))
for await (const file of globber.globGenerator()) {
const relativeFile = path