Fix CI problem: Some commits are treated as "XML changes only

Use more precise path inside $folders_onejob.

Fix #12810, close #12813
pull/12838/head
ArkadiuszMichalski 2023-01-18 00:57:17 +01:00 committed by Don Ho
parent 63d1bbae78
commit f8593916a9
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ before_build:
# XML validation mode
$allowMaster = $true
if ($allowMaster -or $env:APPVEYOR_PULL_REQUEST_NUMBER) {
$folders_onejob = "PowerEditor/Test/|/filesForTesting/|/functionList/"
$folders_onejob = "PowerEditor/(Test|(installer/(filesForTesting|functionList)))/"
$files_nowork = "md|txt|log"
$files_modified = @(git diff --name-only HEAD~1)
$files_notmached = @($files_modified | Where-Object {$_ -notmatch "\.(xml|$files_nowork)$|$folders_onejob"})