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