Skip to content

Commit ccb0843

Browse files
committed
fix: updates output syntax for tag version
Signed-off-by: Vincent Biret <[email protected]>
1 parent 6532349 commit ccb0843

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,9 @@ extends:
218218
$artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
219219
#Set Variable $artifactName and $artifactVersion
220220
Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false; isOutput=true]$artifactVersion"
221-
Write-Host "##vso[task.setvariable variable=artifactName; isSecret=false; isOutput=true]$artifactName.FullName"
222-
echo "$artifactName"
223221
echo "$artifactVersion"
224222
displayName: 'Fetch Artifact Name'
223+
name: getTagVersion
225224
- task: 1ES.PublishNuget@1
226225
displayName: 'NuGet push'
227226
inputs:
@@ -234,10 +233,10 @@ extends:
234233
condition: succeededOrFailed()
235234
inputs:
236235
gitHubConnection: 'Github-MaggieKimani1'
237-
action: edit
236+
action: create
238237
tagSource: userSpecifiedTag
239-
tag: '$(artifactVersion)'
240-
title: '$(artifactVersion)'
238+
tag: '$(getTagVersion.artifactVersion)'
239+
title: '$(getTagVersion.artifactVersion)'
241240
releaseNotesSource: inline
242241
assets: '$(Pipeline.Workspace)\**\*.exe'
243242
changeLogType: issueBased

0 commit comments

Comments
 (0)