mirror of
https://github.com/werf/actions.git
synced 2026-02-05 10:56:23 +03:00
Validate the version input value
An arbitrary version must be within MAJOR.MINOR
This commit is contained in:
@@ -1880,6 +1880,20 @@ function _readLinuxVersionFile() {
|
||||
exports._readLinuxVersionFile = _readLinuxVersionFile;
|
||||
//# sourceMappingURL=manifest.js.map
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 290:
|
||||
/***/ (function(__unusedmodule, exports) {
|
||||
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MINOR = exports.MAJOR = exports.MAJOR_MINOR_GROUP = void 0;
|
||||
exports.MAJOR_MINOR_GROUP = '1.1';
|
||||
exports.MAJOR = 1;
|
||||
exports.MINOR = 1;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 293:
|
||||
@@ -17328,9 +17342,9 @@ const typescript_string_operations_1 = __webpack_require__(863);
|
||||
const crypto = __importStar(__webpack_require__(417));
|
||||
const tmp = __importStar(__webpack_require__(801));
|
||||
const dotenv = __importStar(__webpack_require__(646));
|
||||
const werf = __importStar(__webpack_require__(290));
|
||||
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';
|
||||
class Manager {
|
||||
constructor() {
|
||||
this.channel = core.getInput('channel').trim();
|
||||
@@ -17414,7 +17428,7 @@ class Manager {
|
||||
else {
|
||||
url = WERF_API_GET_CHANNEL_VERSION_URL_METHOD;
|
||||
query = {
|
||||
group: MAJOR_MINOR_GROUP,
|
||||
group: werf.MAJOR_MINOR_GROUP,
|
||||
channel: this.channel,
|
||||
os: this.os,
|
||||
arch: this.arch
|
||||
|
||||
Reference in New Issue
Block a user