ci: fix branchName in PRs
This commit is contained in:
@ -5,7 +5,7 @@ variables:
|
||||
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/') }}:
|
||||
branchName: ${{ replace(variables['Build.SourceBranchName'], 'refs/heads/', '') }}
|
||||
${{ if startsWith(variables['Build.SourceBranch'], 'refs/pull/') }}:
|
||||
branchName: ${{ replace(variables['System.PullRequest.SourceBranch'], 'refs/heads/', '') }}
|
||||
branchName: $(System.PullRequest.SourceBranch)
|
||||
|
||||
stages:
|
||||
- stage: generate
|
||||
|
||||
Reference in New Issue
Block a user