diff --git a/SemanticReleaseNotesParser/BuildServers/AppVeyor.cs b/SemanticReleaseNotesParser/BuildServers/AppVeyor.cs index f98cb5c..fd0afa9 100644 --- a/SemanticReleaseNotesParser/BuildServers/AppVeyor.cs +++ b/SemanticReleaseNotesParser/BuildServers/AppVeyor.cs @@ -26,11 +26,12 @@ public bool CanApplyToCurrentContext() public void SetEnvironmentVariable(string variable, string value) { Logger.Debug("AppVeyor API Url: {0}", _appVeyorApiUrl); - Logger.Debug("Variable value: {0}", value); + var request = string.Format(SetEnvironmentVariableRequest, variable, value); + Logger.Debug("Request body: {0}", value); using (var webClient = _webClientFactory.Create(_appVeyorApiUrl)) { - webClient.UploadData("api/build/variables", "POST", Encoding.UTF8.GetBytes(string.Format(SetEnvironmentVariableRequest, variable, value))); + webClient.UploadData("api/build/variables", "POST", Encoding.UTF8.GetBytes(request)); Logger.Info("Adding AppVeyor environment variable: {0}.", variable); } }