Skip to content

Commit f296315

Browse files
azure-sdksima-zhu
andauthored
Sync eng/common directory with azure-sdk-tools for PR 3480 (#25117)
* Check file case duplication * Save changes Co-authored-by: sizhu <[email protected]>
1 parent 6a4a3ad commit f296315

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
parameters:
2+
WorkingDirectory: '$(System.DefaultWorkingDirectory)'
3+
steps:
4+
- pwsh: |
5+
$differByCaseFiles = git ls-files | Group-Object | Where-Object { $_.Count -gt 1 }
6+
7+
if ($differByCaseFiles)
8+
{
9+
foreach ($fileGroup in $differByCaseFiles) {
10+
Write-Host "Duplicated Files: "
11+
Write-Host "[ $($fileGroup.Group) ]"
12+
}
13+
Write-Host "Do NOT name the files which only differ in case. Please check above files."
14+
exit 1
15+
}
16+
Write-Host "There are no file names that only differ in case."
17+
displayName: Check file case duplicates
18+
workingDirectory: ${{ parameters.WorkingDirectory }}

0 commit comments

Comments
 (0)