Remove old caching code

This commit is contained in:
Daz DeBoer
2021-08-22 20:28:46 -06:00
parent 5340f6e816
commit d9cc0aeccf
8 changed files with 0 additions and 493 deletions

View File

@@ -1,17 +1,3 @@
import * as path from 'path'
import * as glob from '@actions/glob'
export async function hashFiles(
baseDir: string,
patterns: string[] = ['**'],
followSymbolicLinks = false
): Promise<string | null> {
const combinedPatterns = patterns
.map(pattern => `${baseDir}${path.sep}${pattern}`)
.join('\n')
return glob.hashFiles(combinedPatterns, {followSymbolicLinks})
}
export function truncateArgs(args: string): string {
return args.trim().replace(/\s+/g, ' ').substr(0, 400)
}