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