Validate werf version

This commit is contained in:
Alexey Igrychev
2021-03-10 13:49:26 +00:00
parent 3a89c159de
commit f589022202
11 changed files with 26868 additions and 193 deletions

View File

@@ -10,6 +10,7 @@ import * as crypto from 'crypto'
import * as tmp from 'tmp'
import * as dotenv from 'dotenv'
import * as werf from './werf'
import {ValidateWerfVersion} from './common'
const WERF_API_GET_CHANNEL_VERSION_URL_METHOD =
'https://werf.io/api/getChannelVersionURL'
@@ -27,6 +28,10 @@ export class Manager {
this.channel = core.getInput('channel').trim()
this.version = core.getInput('version').trim()
if (this.version !== '') {
ValidateWerfVersion(this.version)
}
if (process.platform.toString() === 'win32') {
this.os = 'windows'
} else {