Update condition syntax

This commit is contained in:
Joseph Donofry 2019-05-18 00:56:55 -04:00
parent e0095536b7
commit edc4331935
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB

View file

@ -26,7 +26,7 @@ steps:
# Create a variable for build success # Create a variable for build success
- pwsh: if( (Get-ChildItem $(Build.ArtifactStagingDirectory) | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' } - pwsh: if( (Get-ChildItem $(Build.ArtifactStagingDirectory) | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' }
- task: GitHubRelease@0 - task: GitHubRelease@0
condition: and(succeeded(), eq( $(buildSuccess), 'true' ) ) condition: and(succeeded(), eq(variables['buildSuccess'], 'true') )
inputs: inputs:
gitHubConnection: nheko-reborn-pipeline gitHubConnection: nheko-reborn-pipeline
repositoryName: '$(Build.Repository.Name)' repositoryName: '$(Build.Repository.Name)'