ci: fix branchName in PRs
This commit is contained in:
parent
4998ccbe41
commit
9549a7188b
|
@ -11,7 +11,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: Lint
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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: lint
|
||||
|
|
Reference in New Issue