diff --git a/.github/workflows/sync-main-to-future.yml b/.github/workflows/sync-main-to-future.yml index a2cd5e7aded5..7ef6eba531f6 100644 --- a/.github/workflows/sync-main-to-future.yml +++ b/.github/workflows/sync-main-to-future.yml @@ -23,7 +23,7 @@ jobs: $commitMessagePatternToIgnore += "^Migrate\s\w+\sfrom\sgeneration\sto\smain" $commitMessagePatternToIgnore += "^Move\s\w+\sto\smain" foreach ($pattern in $commitMessagePatternToIgnore) { - if ($commitMessage -match $ignoreCommitPattern) { + if ($commitMessage -match $pattern) { Write-Host -ForegroundColor DarkGreen "Commit: [$commitMessage], is for gen2main, skip this run ..." return }