Skip to content

Commit 725b21d

Browse files
author
Cv-securityIQ
authored
Update azure-sentinel-deploy-b7c98d6c-4bb4-4c94-98fd-2b2fc95222c9.ps1
1 parent 4bdb97b commit 725b21d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/azure-sentinel-deploy-b7c98d6c-4bb4-4c94-98fd-2b2fc95222c9.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,11 @@ function Deployment($fullDeploymentFlag, $remoteShaTable, $tree) {
524524
ForEach-Object { $iterationList += $_.FullName }
525525
$iterationList | ForEach-Object {
526526
$path = $_
527+
Write-Host "[Warning] Tying to see if $path starts with 'invalid'."
528+
if ($path -like "*invalid*") {
529+
Write-Host "[Warning] Skipping deployment for $path as it starts with 'invalid'."
530+
return
531+
}
527532
Write-Host "[Info] Try to deploy $path"
528533
if (-not (Test-Path $path)) {
529534
Write-Host "[Warning] Skipping deployment for $path. The file doesn't exist."
@@ -648,4 +653,4 @@ function main() {
648653
Deployment $fullDeploymentFlag $remoteShaTable $tree
649654
}
650655

651-
main
656+
main

0 commit comments

Comments
 (0)