Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit f235fe2

Browse files
committed
Added default value when there are no tags
1 parent 6d9851c commit f235fe2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Task("PublishNuGetPackages")
202202

203203
var branchName = gitVersion.BranchName.Trim();
204204
var taggedBuild = Convert.ToBoolean(EnvironmentVariable("APPVEYOR_REPO_TAG"));
205-
var tag = EnvironmentVariable("APPVEYOR_REPO_TAG_NAME");
205+
var tag = EnvironmentVariable("APPVEYOR_REPO_TAG_NAME") ?? "<no tag>";
206206
Information("{0}@{1}", branchName, tag);
207207
return taggedBuild || branchName == "develop";
208208
})

0 commit comments

Comments
 (0)