Embed the MAJOR.MINOR version and remove the group input

This commit is contained in:
Alexey Igrychev
2021-03-10 11:38:00 +00:00
parent da0172ca6e
commit 4dc23b175f
31 changed files with 87 additions and 174 deletions

View File

@@ -13,9 +13,9 @@ import * as dotenv from 'dotenv'
const WERF_API_GET_CHANNEL_VERSION_URL_METHOD =
'https://werf.io/api/getChannelVersionURL'
const WERF_API_GET_VERSION_URL_METHOD = 'https://werf.io/api/getVersionURL'
const MAJOR_MINOR_GROUP = '1.1'
export class Manager {
private readonly group: string
private readonly channel: string
private readonly version: string
private readonly os: string
@@ -24,7 +24,6 @@ export class Manager {
private binaryPath: string | undefined
constructor() {
this.group = core.getInput('group').trim()
this.channel = core.getInput('channel').trim()
this.version = core.getInput('version').trim()
@@ -113,7 +112,7 @@ export class Manager {
} else {
url = WERF_API_GET_CHANNEL_VERSION_URL_METHOD
query = {
group: this.group,
group: MAJOR_MINOR_GROUP,
channel: this.channel,
os: this.os,
arch: this.arch