Skip to content

Commit

Permalink
Fix condition in protected file check (#32215)
Browse files Browse the repository at this point in the history
  • Loading branch information
weshaggard authored Jan 17, 2025
1 parent 2f40f02 commit 1ff75cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/protected-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
$protectedFiles = @("package.json", "package-lock.json", ".github/*", "eng/*")
$changedFiles = @(Get-ChangedFiles -baseCommitish HEAD^ -targetCommitish HEAD -diffFilter "")
$matchedFiles = @($changedFiles | Where-Object { $changedFile = $_; $protectedFiles | ForEach-Object { $changedFile -like $_ } })
$matchedFiles = @($changedFiles | Where-Object { $changedFile = $_; $protectedFiles | Where-Object { $changedFile -like $_ } })
if ($matchedFiles.Count -gt 0) {
foreach ($file in $matchedFiles) {
Expand Down

0 comments on commit 1ff75cb

Please sign in to comment.