Log to google for GCP_LOGGING
parent
526da2841f
commit
3b990c85ca
|
|
@ -3661,8 +3661,9 @@ class Input {
|
||||||
return Input.getInput(`cloudRunnerTests`) || Input.getInput(`CloudRunnerTests`) || false;
|
return Input.getInput(`cloudRunnerTests`) || Input.getInput(`CloudRunnerTests`) || false;
|
||||||
}
|
}
|
||||||
static getInput(query) {
|
static getInput(query) {
|
||||||
if (Input.githubInputEnabled) {
|
const coreInput = core.getInput(query);
|
||||||
return core.getInput(query) || '';
|
if (Input.githubInputEnabled && coreInput && coreInput !== '') {
|
||||||
|
return coreInput;
|
||||||
}
|
}
|
||||||
return Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined
|
return Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined
|
||||||
? Input.cliOptions[query]
|
? Input.cliOptions[query]
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -26,7 +26,6 @@ describe('Cloud Runner', () => {
|
||||||
};
|
};
|
||||||
if (Input.cloudRunnerTests) {
|
if (Input.cloudRunnerTests) {
|
||||||
it('All build parameters sent to cloud runner as env vars', async () => {
|
it('All build parameters sent to cloud runner as env vars', async () => {
|
||||||
Input.githubInputEnabled = false;
|
|
||||||
const buildParameter = await BuildParameters.create();
|
const buildParameter = await BuildParameters.create();
|
||||||
const baseImage = new ImageTag(buildParameter);
|
const baseImage = new ImageTag(buildParameter);
|
||||||
const file = await CloudRunner.run(buildParameter, baseImage.toString());
|
const file = await CloudRunner.run(buildParameter, baseImage.toString());
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,9 @@ class Input {
|
||||||
return Input.getInput(`cloudRunnerTests`) || Input.getInput(`CloudRunnerTests`) || false;
|
return Input.getInput(`cloudRunnerTests`) || Input.getInput(`CloudRunnerTests`) || false;
|
||||||
}
|
}
|
||||||
private static getInput(query) {
|
private static getInput(query) {
|
||||||
if (Input.githubInputEnabled) {
|
const coreInput = core.getInput(query);
|
||||||
return core.getInput(query) || '';
|
if (Input.githubInputEnabled && coreInput && coreInput !== '') {
|
||||||
|
return coreInput;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined
|
return Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue