Skip to content

Commit bc784e2

Browse files
committed
Update README.md to include UseMergeBase parameter in usage example
1 parent 005293c commit bc784e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.build/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ The script checks for changes to:
3333
|-----------|------|---------|---------|
3434
| `BaseBranch` | String | `'origin/main'` | Base branch to compare against |
3535
| `CurrentBranch` | String | `'HEAD'` | Current branch or commit to compare |
36+
| `UseMergeBase` | Switch | `$false` | Use merge-base to compute diff base |
3637

3738
### Outputs
3839

@@ -53,7 +54,7 @@ a boolean value that the pipeline captures, e.g.:
5354
<!-- markdownlint-disable MD013 -->
5455
```yaml
5556
- powershell: |
56-
$shouldRun = ./.build/Test-ShouldRunDscResourceIntegrationTests.ps1 -BaseBranch $targetBranch -CurrentBranch HEAD
57+
$shouldRun = & ./.build/Test-ShouldRunDscResourceIntegrationTests.ps1 -BaseBranch $targetBranch -CurrentBranch HEAD -UseMergeBase
5758
Write-Host "##vso[task.setvariable variable=ShouldRunDscResourceIntegrationTests;isOutput=true]$shouldRun"
5859
displayName: 'Determine if DSC resource tests should run'
5960
name: determineShouldRun

0 commit comments

Comments
 (0)