Skip to content

Commit

Permalink
Remove git refs text from release version input
Browse files Browse the repository at this point in the history
  • Loading branch information
burtonr committed Jul 27, 2020
1 parent 8fee956 commit 099b3fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ActionsHelp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ public static ActionResult<Inputs> ReadInputValues()
OctopusURL = Environment.GetEnvironmentVariable("INPUT_OCTOPUS_URL"),
OctopusApiKey = Environment.GetEnvironmentVariable("INPUT_API_KEY"),
ProjectName = Environment.GetEnvironmentVariable("INPUT_PROJECT_NAME"),
ReleaseVersion = Environment.GetEnvironmentVariable("INPUT_RELEASE_VERSION"),
ReleaseId = Environment.GetEnvironmentVariable("INPUT_RELEASE_ID"),
EnvironmentName = Environment.GetEnvironmentVariable("INPUT_ENVIRONMENT_NAME"),
ChannelName = Environment.GetEnvironmentVariable("INPUT_CHANNEL_NAME")
};

var version = Environment.GetEnvironmentVariable("INPUT_RELEASE_VERSION");
if (!string.IsNullOrWhiteSpace(version))
{
inputResult.Result.ReleaseVersion = version.Replace("refs/tags/", "");
}

var space = Environment.GetEnvironmentVariable("INPUT_SPACE_NAME");
if (!string.IsNullOrWhiteSpace(space))
Expand Down

0 comments on commit 099b3fa

Please sign in to comment.