File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,14 @@ $auth = "basic $([System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.G
44
44
$commitMessage = " "
45
45
$prTitle = " "
46
46
$newBranchName = " develop-nfbot/update-dependencies/" + [guid ]::NewGuid().ToString()
47
- $packageTargetVersion = $env: NBGV_NuGetPackageVersion
48
47
$packageName = " nanoframework.corelibrary"
49
48
$repoMainBranch = " main"
50
49
50
+ # get the target version from the branch name
51
+ $packageTargetVersion = $env: Build_SourceBranch
52
+ $packageTargetVersion = $packageTargetVersion -replace " refs/tags/" , " "
53
+ $packageTargetVersion = $packageTargetVersion.Substring (1 )
54
+
51
55
# working directory is agent temp directory
52
56
Write-Debug " Changing working directory to $env: Agent_TempDirectory "
53
57
Set-Location " $env: Agent_TempDirectory " | Out-Null
You can’t perform that action at this time.
0 commit comments