File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ $commit_hash = $dparts[2];
9
9
10
10
$masterBranches = @ (" master" );
11
11
12
+ $is_tag_build = ($env: APPVEYOR_REPO_TAG -eq " true" );
13
+
12
14
# If not in master branch, set branch variable
13
15
$av_branch = $env: APPVEYOR_REPO_BRANCH ;
14
- $branch = $ (if ($masterBranches -contains $av_branch ) { " " } else { " -$av_branch " });
16
+ $branch = $ (if ($is_tag_build -or $ masterBranches -contains $av_branch ) { " " } else { " -$av_branch " });
15
17
16
18
# If this is a PR, add the PR suffix
17
19
$suffix = $ (if ($env: APPVEYOR_PULL_REQUEST_NUMBER ) { " -pr$env: APPVEYOR_PULL_REQUEST_NUMBER " } else { " " });
@@ -27,6 +29,9 @@ $is_release_build = ($commits_since_tag -eq 0 -and $is_main_build)
27
29
$version = $ (if ($is_release_build ) { $short_version } else { " $short_version -$commit_hash " })
28
30
$bin_version = " $short_version .$build "
29
31
32
+ write-host - n " Branch: " ;
33
+ write-host -f cyan $av_branch ;
34
+
30
35
write-host - n " Release type: " ;
31
36
if ($is_release_build ) {write-host -f green ' release' } else { write-host -f yellow ' pre-release' }
32
37
You can’t perform that action at this time.
0 commit comments