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:
Daniel Jurek 2021-02-05 08:28:16 -08:00 committed by GitHub
parent 43aa7ff7ad
commit d92e88415b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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