Skip to content

Commit d5f3a57

Browse files
committed
updating conditions
1 parent f733e65 commit d5f3a57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.azure-pipelines/generation-templates/capture-openapi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,10 @@ jobs:
156156

157157
# Push changes to msgraph-metadata repo
158158
- pwsh: '$(scriptsDirectory)/git-push-cleanmetadata.ps1'
159+
condition: not('${{ parameters.skipOpenAPIPRGeneration }}')
159160
displayName: Publish ${{ parameters.endpoint }} OpenAPI description to msgraph-metadata repo
160161
env:
161-
CreateOpenAPIPR: True
162+
CreateOpenAPIPR: true
162163
EndpointVersion: ${{ parameters.endpoint }}
163164
PublishChanges: $(publishChanges)
164165
workingDirectory: '$(Build.SourcesDirectory)/msgraph-metadata'
@@ -176,10 +177,11 @@ jobs:
176177
SecretsFilter: "microsoft-graph-devx-bot-appid,microsoft-graph-devx-bot-privatekey"
177178

178179
- pwsh: '$(scriptsDirectory)/create-pull-request.ps1'
180+
condition: not('${{ parameters.skipOpenAPIPRGeneration }}')
179181
displayName: 'Create Pull Request for the generated OpenAPI files for msgraph-metadata'
180182
env:
181183
BaseBranch: master
182-
GeneratePullRequest: not('${{ parameters.skipOpenAPIPRGeneration }}')
184+
GeneratePullRequest: true
183185
GhAppId: $(microsoft-graph-devx-bot-appid)
184186
GhAppKey: $(microsoft-graph-devx-bot-privatekey)
185187
OverrideSkipCI: false

0 commit comments

Comments
 (0)