review comments
parent
f273e9d7a2
commit
108b5d3c87
|
|
@ -663,6 +663,25 @@ exports.Cli = Cli;
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||||
|
}) : (function(o, m, k, k2) {
|
||||||
|
if (k2 === undefined) k2 = k;
|
||||||
|
o[k2] = m[k];
|
||||||
|
}));
|
||||||
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||||
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||||
|
}) : function(o, v) {
|
||||||
|
o["default"] = v;
|
||||||
|
});
|
||||||
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
|
if (mod && mod.__esModule) return mod;
|
||||||
|
var result = {};
|
||||||
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
|
__setModuleDefault(result, mod);
|
||||||
|
return result;
|
||||||
|
};
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||||
};
|
};
|
||||||
|
|
@ -670,7 +689,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const cli_1 = __nccwpck_require__(55651);
|
const cli_1 = __nccwpck_require__(55651);
|
||||||
const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(31011));
|
const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(31011));
|
||||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||||
const core = __nccwpck_require__(42186);
|
const core = __importStar(__nccwpck_require__(42186));
|
||||||
class CloudRunnerOptions {
|
class CloudRunnerOptions {
|
||||||
// ### ### ###
|
// ### ### ###
|
||||||
// Input Handling
|
// Input Handling
|
||||||
|
|
@ -699,7 +718,6 @@ class CloudRunnerOptions {
|
||||||
if (alternativeQuery !== query && process.env[alternativeQuery] !== undefined) {
|
if (alternativeQuery !== query && process.env[alternativeQuery] !== undefined) {
|
||||||
return process.env[alternativeQuery];
|
return process.env[alternativeQuery];
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
static ToEnvVarFormat(input) {
|
static ToEnvVarFormat(input) {
|
||||||
if (input.toUpperCase() === input) {
|
if (input.toUpperCase() === input) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,13 +1,13 @@
|
||||||
import { Cli } from '../cli/cli';
|
import { Cli } from '../cli/cli';
|
||||||
import CloudRunnerQueryOverride from './services/cloud-runner-query-override';
|
import CloudRunnerQueryOverride from './services/cloud-runner-query-override';
|
||||||
import GitHub from '../github';
|
import GitHub from '../github';
|
||||||
const core = require('@actions/core');
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
class CloudRunnerOptions {
|
class CloudRunnerOptions {
|
||||||
// ### ### ###
|
// ### ### ###
|
||||||
// Input Handling
|
// Input Handling
|
||||||
// ### ### ###
|
// ### ### ###
|
||||||
public static getInput(query: any) {
|
public static getInput(query: string) {
|
||||||
if (GitHub.githubInputEnabled) {
|
if (GitHub.githubInputEnabled) {
|
||||||
const coreInput = core.getInput(query);
|
const coreInput = core.getInput(query);
|
||||||
if (coreInput && coreInput !== '') {
|
if (coreInput && coreInput !== '') {
|
||||||
|
|
@ -36,8 +36,6 @@ class CloudRunnerOptions {
|
||||||
if (alternativeQuery !== query && process.env[alternativeQuery] !== undefined) {
|
if (alternativeQuery !== query && process.env[alternativeQuery] !== undefined) {
|
||||||
return process.env[alternativeQuery];
|
return process.env[alternativeQuery];
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ToEnvVarFormat(input: string) {
|
public static ToEnvVarFormat(input: string) {
|
||||||
|
|
@ -80,7 +78,7 @@ class CloudRunnerOptions {
|
||||||
return CloudRunnerOptions.getInput('githubRepoName') || CloudRunnerOptions.githubRepo.split(`/`)[1] || false;
|
return CloudRunnerOptions.getInput('githubRepoName') || CloudRunnerOptions.githubRepo.split(`/`)[1] || false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static get triggerWorkflowOnComplete() {
|
static get triggerWorkflowOnComplete(): string[] {
|
||||||
return CloudRunnerOptions.getInput('triggerWorkflowOnComplete')?.split(',') || [];
|
return CloudRunnerOptions.getInput('triggerWorkflowOnComplete')?.split(',') || [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue