File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
components/ide/jetbrains/gateway-plugin Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -115,9 +115,13 @@ intellijPlatform {
115
115
116
116
publishing {
117
117
token = providers.environmentVariable(" JB_MARKETPLACE_PUBLISH_TOKEN" ).getOrElse(" " )
118
- var pluginChannels = providers.environmentVariable(" JB_GATEWAY_GITPOD_PLUGIN_CHANNEL" ).getOrElse(" Dev" )
119
- if (pluginChannels.contains(" -main-gha." )) {
120
- pluginChannels = " Stable"
118
+ var pluginChannels = providers.environmentVariable(" JB_GATEWAY_GITPOD_PLUGIN_CHANNEL" ).getOrElse(" " )
119
+ if (pluginChannels.isBlank()) {
120
+ pluginChannels = if (pluginVersion.contains(" -main-gha." )) {
121
+ " Stable"
122
+ } else {
123
+ " Dev"
124
+ }
121
125
}
122
126
channels = listOf (pluginChannels)
123
127
}
Original file line number Diff line number Diff line change @@ -115,9 +115,13 @@ intellijPlatform {
115
115
116
116
publishing {
117
117
token = providers.environmentVariable(" JB_MARKETPLACE_PUBLISH_TOKEN" ).getOrElse(" " )
118
- var pluginChannels = providers.environmentVariable(" JB_GATEWAY_GITPOD_PLUGIN_CHANNEL" ).getOrElse(" Dev" )
119
- if (pluginChannels.contains(" -main-gha." )) {
120
- pluginChannels = " Stable"
118
+ var pluginChannels = providers.environmentVariable(" JB_GATEWAY_GITPOD_PLUGIN_CHANNEL" ).getOrElse(" " )
119
+ if (pluginChannels.isBlank()) {
120
+ pluginChannels = if (pluginVersion.contains(" -main-gha." )) {
121
+ " Stable"
122
+ } else {
123
+ " Dev"
124
+ }
121
125
}
122
126
channels = listOf (pluginChannels)
123
127
}
You can’t perform that action at this time.
0 commit comments