Add succeeded() condition to dependent jobs (#1605)
Without checking for succeeded() these jobs will run regardless of the success or failure of the TagRepository step.
This commit is contained in:
parent
43aa7ff7ad
commit
d92e88415b
@ -46,7 +46,7 @@ stages:
|
||||
- ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}:
|
||||
- deployment: PublishDocs
|
||||
displayName: Publish Docs to GitHub pages
|
||||
condition: ne(variables['Skip.PublishDocs'], 'true')
|
||||
condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'))
|
||||
environment: githubio
|
||||
# Release tag must exist for link substitution to work
|
||||
dependsOn: TagRepository
|
||||
@ -77,7 +77,7 @@ stages:
|
||||
- ${{ if ne(artifact.skipPublishVcpkg, 'true') }}:
|
||||
- deployment: PublishVcpkg
|
||||
displayName: Publish to vcpkg
|
||||
condition: ne(variables['Skip.PublishVcpkg'], 'true')
|
||||
condition: and(succeeded(), ne(variables['Skip.PublishVcpkg'], 'true'))
|
||||
environment: github
|
||||
# This step requires the tag step
|
||||
dependsOn: TagRepository
|
||||
|
||||
Loading…
Reference in New Issue
Block a user