Skip to content

Commit

Permalink
Update megaLinterCentral.yml - fix branchName var
Browse files Browse the repository at this point in the history
Fix for error: 
fatal: Remote branch <branch> not found in upstream origin
  • Loading branch information
DonKoning authored Oct 3, 2023
1 parent 361f5a3 commit 624a983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/megaLinterCentral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ steps:

- powershell: |
$BranchRef = "$(System.PullRequest.SourceBranch)"
$BranchName = $BranchRef.Split("/")[-1]
$BranchName = $BranchRef.Replace("refs/heads/","")
$TargetBranchRef = "$(System.PullRequest.TargetBranch)"
$TargetbranchName = $TargetBranchRef.Split("/")[-1]
Expand Down

0 comments on commit 624a983

Please sign in to comment.