Skip to content
Snippets Groups Projects
Verified Commit 4d17c077 authored by Joe Donofry's avatar Joe Donofry
Browse files

Update powershell script

parent 28e40544
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,9 @@ steps:
- bash: ls ${ARTIFACT_STAGING_DIRECTORY}
env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
- 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 $ENV:ARTIFACT_STAGING_DIRECTORY | Measure-Object).Count -eq 0) { echo '##vso[task.setvariable variable=buildSuccess]false' } else { echo '##vso[task.setvariable variable=buildSuccess]true' }
env:
ARTIFACT_STAGING_DIRECTORY: $(Build.ArtifactStagingDirectory))
# delete the release if it already exists to avoid an error
- task: GitHubRelease@0
condition: and(succeeded(), eq(variables['buildSuccess'], 'true') )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment