Skip to content

Commit

Permalink
fix(UploadPackageTask): unwrap version only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingwersaft committed Jun 18, 2020
1 parent 3aeb93e commit 140c80a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ open class UploadPackageTask : DefaultTask() {
val awaitReleases = waitForReleaseDeployments.getOrElse(false)
val octopusUrlValue = octopusUrl.get()
val apiKeyValue = apiKey.get()
val versionValue = version.get()
val (exitCode, inputText, errorText) = listOf(
"octo",
"push",
Expand All @@ -85,6 +84,7 @@ open class UploadPackageTask : DefaultTask() {
}
if (awaitReleases.not()) return
val packageNameValue = packageName.get()
val versionValue = version.get()
awaitReleaseLogic(
octopusUrlValue = octopusUrlValue,
apiKeyValue = apiKeyValue,
Expand Down

0 comments on commit 140c80a

Please sign in to comment.