From dea1b1d3a6a81f7e72f7622542b1f39c39bd1880 Mon Sep 17 00:00:00 2001 From: Bec Callow Date: Mon, 23 Sep 2024 11:07:16 +1000 Subject: [PATCH] Change output format to string --- .../octopusdeploy-create-release/step.yaml | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/incubating/octopusdeploy-create-release/step.yaml b/incubating/octopusdeploy-create-release/step.yaml index 31da799b..43142edc 100644 --- a/incubating/octopusdeploy-create-release/step.yaml +++ b/incubating/octopusdeploy-create-release/step.yaml @@ -117,26 +117,14 @@ spec: "definitions": {}, "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", - "additionalProperties": true, "patterns": [], "required": [ "RELEASE" ], "properties": { "RELEASE": { - "additionalProperties": true, - "type": "object", - "description": "The release that was created", - "properties": { - "Channel": { - "type": "string", - "description": "The channel for this release" - }, - "Version": { - "type": "string", - "description": "The version of this release" - } - } + "type": "string", + "description": "The release version that was created" } } } @@ -148,11 +136,11 @@ spec: commands: - OUTPUT=$(octopus release create --project "[[.Arguments.PROJECT]]" - --version "[[.Arguments.RELEASE_NUMBER]]" --no-prompt - --output-format json + --output-format basic [[- if .Arguments.PACKAGE_VERSION ]] --package-version "[[ .Arguments.PACKAGE_VERSION ]]" [[ end ]] [[- range $val := .Arguments.PACKAGES ]] --package "[[ $val ]]" [[ end ]] + [[- if .Arguments.RELEASE_NUMBER ]] --version "[[ .Arguments.RELEASE_NUMBER ]]" [[ end ]] [[- if .Arguments.CHANNEL ]] --channel "[[ .Arguments.CHANNEL ]]" [[ end ]] [[- if .Arguments.GIT_REF ]] --git-ref "[[ .Arguments.GIT_REF ]]" [[ end ]] [[- if .Arguments.GIT_COMMIT ]] --git-commit "[[ .Arguments.GIT_COMMIT ]]" [[ end ]]