mirror of
https://github.com/werf/actions.git
synced 2026-02-05 10:56:23 +03:00
Embed the MAJOR.MINOR version and remove the group input
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user