File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -270,11 +270,13 @@ stages:
270
270
inputs :
271
271
source : current
272
272
- pwsh : |
273
- $artifactName = Get-ChildItem -Path $(Pipeline.Workspace) -Filter Microsoft.OpenApi.Hidi-* -recurse | select -First 1
274
- $artifactVersion= $artifactName -replace "Microsoft.OpenApi.Hidi- ", ""
273
+ $artifactName = Get-ChildItem -Path $(Pipeline.Workspace)\Nugets -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
274
+ $artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg ", ""
275
275
#Set Variable $artifactName and $artifactVersion
276
276
Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false; isOutput=true]$artifactVersion"
277
277
Write-Host "##vso[task.setvariable variable=artifactName; isSecret=false; isOutput=true]$artifactName.FullName"
278
+ echo "$artifactName"
279
+ echo "$artifactVersion"
278
280
displayName: 'Fetch Artifact Name'
279
281
280
282
- task : NuGetCommand@2
@@ -290,7 +292,7 @@ stages:
290
292
gitHubConnection : ' Github-MaggieKimani1'
291
293
tagSource : userSpecifiedTag
292
294
tag : ' $(artifactVersion)'
293
- title : ' $(artifactName )'
295
+ title : ' $(artifactVersion )'
294
296
releaseNotesSource : inline
295
297
assets : ' $(Pipeline.Workspace)\**\*.exe'
296
298
changeLogType : issueBased
You can’t perform that action at this time.
0 commit comments