File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/NerdBank.GitVersioning/CloudBuildServices Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ public class BitbucketCloud : ICloudBuild
20
20
public bool IsPullRequest => ! string . IsNullOrWhiteSpace ( Environment . GetEnvironmentVariable ( "BITBUCKET_PR_ID" ) ) ;
21
21
22
22
/// <inheritdoc />
23
- public string BuildingBranch => Environment . GetEnvironmentVariable ( "BITBUCKET_BRANCH" ) ;
23
+ public string BuildingBranch => CloudBuild . ShouldStartWith ( Environment . GetEnvironmentVariable ( "BITBUCKET_BRANCH" ) , "refs/heads/ ") ;
24
24
25
25
/// <inheritdoc />
26
- public string BuildingTag => Environment . GetEnvironmentVariable ( "BITBUCKET_TAG" ) ;
26
+ public string BuildingTag => CloudBuild . ShouldStartWith ( Environment . GetEnvironmentVariable ( "BITBUCKET_TAG" ) , "refs/tags/ ") ;
27
27
28
28
/// <inheritdoc />
29
29
public string GitCommitId => Environment . GetEnvironmentVariable ( "BITBUCKET_COMMIT" ) ;
You can’t perform that action at this time.
0 commit comments