public void Execute(string targetNumber, ISettings settings) { targetNumber = VariablesEngine.Expand(targetNumber, settings); Write("build number is "); WriteLine(targetNumber, T.HeadingTextColor); AzurePipelines.UpdateBuildNumber(targetNumber); ProcessUtils.ExecAndGetOutput("appveyor", $"UpdateBuild -Version {targetNumber}"); }
private static string GetGitBranchName() { return(ProcessUtils.ExecAndGetOutput("git", "branch -q").Trim(' ', '*')); }