Skip to content

Commit dea1b1d

Browse files
Change output format to string
1 parent 6ee3284 commit dea1b1d

File tree

1 file changed

+4
-16
lines changed
  • incubating/octopusdeploy-create-release

1 file changed

+4
-16
lines changed

incubating/octopusdeploy-create-release/step.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,26 +117,14 @@ spec:
117117
"definitions": {},
118118
"$schema": "http://json-schema.org/draft-07/schema#",
119119
"type": "object",
120-
"additionalProperties": true,
121120
"patterns": [],
122121
"required": [
123122
"RELEASE"
124123
],
125124
"properties": {
126125
"RELEASE": {
127-
"additionalProperties": true,
128-
"type": "object",
129-
"description": "The release that was created",
130-
"properties": {
131-
"Channel": {
132-
"type": "string",
133-
"description": "The channel for this release"
134-
},
135-
"Version": {
136-
"type": "string",
137-
"description": "The version of this release"
138-
}
139-
}
126+
"type": "string",
127+
"description": "The release version that was created"
140128
}
141129
}
142130
}
@@ -148,11 +136,11 @@ spec:
148136
commands:
149137
- OUTPUT=$(octopus release create
150138
--project "[[.Arguments.PROJECT]]"
151-
--version "[[.Arguments.RELEASE_NUMBER]]"
152139
--no-prompt
153-
--output-format json
140+
--output-format basic
154141
[[- if .Arguments.PACKAGE_VERSION ]] --package-version "[[ .Arguments.PACKAGE_VERSION ]]" [[ end ]]
155142
[[- range $val := .Arguments.PACKAGES ]] --package "[[ $val ]]" [[ end ]]
143+
[[- if .Arguments.RELEASE_NUMBER ]] --version "[[ .Arguments.RELEASE_NUMBER ]]" [[ end ]]
156144
[[- if .Arguments.CHANNEL ]] --channel "[[ .Arguments.CHANNEL ]]" [[ end ]]
157145
[[- if .Arguments.GIT_REF ]] --git-ref "[[ .Arguments.GIT_REF ]]" [[ end ]]
158146
[[- if .Arguments.GIT_COMMIT ]] --git-commit "[[ .Arguments.GIT_COMMIT ]]" [[ end ]]

0 commit comments

Comments
 (0)