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

@@ -43758,9 +43758,9 @@ const tmp = __importStar(__webpack_require__(801));
const dotenv = __importStar(__webpack_require__(972));
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.group = core.getInput('group').trim();
this.channel = core.getInput('channel').trim();
this.version = core.getInput('version').trim();
if (process.platform.toString() === 'win32') {
@@ -43842,7 +43842,7 @@ 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