mirror of https://github.com/actions/toolkit
Allow excluding files and folders when caching
Signed-off-by: Jon Koops <jonkoops@gmail.com>pull/1854/head
parent
29d342f176
commit
50c5576020
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue