mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Update condition syntax
This commit is contained in:
parent
e0095536b7
commit
edc4331935
1 changed files with 1 additions and 1 deletions
|
@ -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)'
|
||||||
|
|
Loading…
Reference in a new issue