From 4bc97ba3540b8892587c7621bdcc19fa054c2c64 Mon Sep 17 00:00:00 2001 From: Cameron Taggart Date: Mon, 9 Mar 2015 21:34:46 -0700 Subject: [PATCH] AppVeyorEnvironment.RepoTag & .RepoTagName --- src/app/FakeLib/AppVeyor.fs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/FakeLib/AppVeyor.fs b/src/app/FakeLib/AppVeyor.fs index 15a21674c2b..d92182a80ab 100644 --- a/src/app/FakeLib/AppVeyor.fs +++ b/src/app/FakeLib/AppVeyor.fs @@ -64,6 +64,14 @@ type AppVeyorEnvironment = /// Commit message static member RepoCommitMessage = environVar "APPVEYOR_REPO_COMMIT_MESSAGE" + /// true if build has started by pushed tag; otherwise false + static member RepoTag = + let rt = environVar "APPVEYOR_REPO_TAG" + rt <> null && rt.Equals("true", System.StringComparison.OrdinalIgnoreCase) + + /// contains tag name for builds started by tag + static member RepoTagName = environVar "APPVEYOR_REPO_TAG_NAME" + /// Platform name set on Build tab of project settings (or through platform parameter in appveyor.yml). static member Platform = environVar "PLATFORM"