Skip to content

Commit f6c716a

Browse files
Make sure DocFX warning check step only executed in PR (#5674)
* Make sure DocFX warning check step only executed in PR * Add run_if parameter to template Co-authored-by: Gregorius Soedharmo <[email protected]>
1 parent 3667a62 commit f6c716a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

build-system/azure-pipeline.template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ parameters:
88
scriptArgs: 'all'
99
outputDirectory: ''
1010
timeoutInMinutes: 120
11+
run_if: true
1112

1213
jobs:
1314
- job: ${{ parameters.name }}
15+
condition: eq( ${{ parameters.run_if }}, true )
1416
displayName: ${{ parameters.displayName }}
1517
timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
1618
pool:

build-system/pr-validation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ jobs:
133133
scriptArgs: docfx
134134
outputDirectory: "TestResults"
135135
artifactName: "docfx_test-$(Build.BuildId)"
136+
run_if: eq(variables['Build.Reason'], 'PullRequest')
136137

137138
- template: azure-pipeline.template.yaml
138139
parameters:

0 commit comments

Comments
 (0)