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