mirror of
https://github.com/actions/toolkit.git
synced 2026-08-19 00:00:17 +02:00
Added verbose mode in hashFiles (#1052)
* Added verbose mode in hashFiles * Code formatting * Change verboseMode arg to verbose Co-authored-by: Thomas Boop <[email protected]> * Using verbose instead of verboseMode as arg Co-authored-by: Thomas Boop <[email protected]>
This commit is contained in:
co-authored by
Thomas Boop
parent
7654d97eb6
commit
8f2bd5d713
@@ -26,12 +26,13 @@ export async function create(
|
||||
*/
|
||||
export async function hashFiles(
|
||||
patterns: string,
|
||||
options?: HashFileOptions
|
||||
options?: HashFileOptions,
|
||||
verbose: Boolean = false
|
||||
): Promise<string> {
|
||||
let followSymbolicLinks = true
|
||||
if (options && typeof options.followSymbolicLinks === 'boolean') {
|
||||
followSymbolicLinks = options.followSymbolicLinks
|
||||
}
|
||||
const globber = await create(patterns, {followSymbolicLinks})
|
||||
return _hashFiles(globber)
|
||||
return _hashFiles(globber, verbose)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user