Align with admin history cleanup and reapply local site updates
Deploy to Production / deploy (push) Successful in 13s
Deploy to Production / deploy (push) Successful in 13s
This commit is contained in:
1 parent
aa40b0803d
commit
a68a6a917c
9 files changed
+30
-383
No files matched your search
@@ -14,6 +14,11 @@ else {
|
||||
}
|
||||
|
||||
$ExcludedDirectories = @("node_modules", "vendor", "dist", "build", "images")
|
||||
$ExcludedFilePatterns = @(
|
||||
"code_export*.txt",
|
||||
"gitea-token*.txt",
|
||||
"gitea-token*.txt.sig"
|
||||
)
|
||||
$ExcludedExtensions = @(
|
||||
".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tiff", ".svg", ".ico", ".webp",
|
||||
".mp4", ".mov", ".avi", ".mkv", ".webm",
|
||||
@@ -105,6 +110,12 @@ function Test-ShouldSkipFile {
|
||||
return $true
|
||||
}
|
||||
|
||||
foreach ($pattern in $ExcludedFilePatterns) {
|
||||
if ($File.Name -like $pattern) {
|
||||
return $true
|
||||
}
|
||||
}
|
||||
|
||||
$segments = $relativePath -split "[\\/]+"
|
||||
foreach ($segment in $segments) {
|
||||
if ($segment.StartsWith(".")) {
|
||||
|
||||
Reference in new issue
Block a user