mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-22 01:49:07 +08:00
log ignored files
This commit is contained in:
parent
1b1e81526b
commit
0a7ac702c0
@ -104,6 +104,7 @@ export class DefaultGlobber implements Globber {
|
||||
|
||||
// Search
|
||||
const traversalChain: string[] = [] // used to detect cycles
|
||||
let loggedFirstHiddenMessage: boolean = false // if printing hidden, is this the first one
|
||||
while (stack.length) {
|
||||
// Pop
|
||||
const item = stack.pop() as SearchState
|
||||
@ -130,6 +131,11 @@ export class DefaultGlobber implements Globber {
|
||||
|
||||
// Hidden file or directory?
|
||||
if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) {
|
||||
if(!loggedFirstHiddenMessage) {
|
||||
core.info(`Ignoring the following hidden files and directories`)
|
||||
loggedFirstHiddenMessage = true
|
||||
}
|
||||
core.info(`- ${item.path}`)
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user