Log to google for GCP_LOGGING

pull/310/head
Frostebite 2022-01-02 03:26:58 +00:00
parent 526da2841f
commit 3b990c85ca
4 changed files with 7 additions and 6 deletions

5
dist/index.js vendored
View File

@ -3661,8 +3661,9 @@ class Input {
return Input.getInput(`cloudRunnerTests`) || Input.getInput(`CloudRunnerTests`) || false;
}
static getInput(query) {
if (Input.githubInputEnabled) {
return core.getInput(query) || '';
const coreInput = core.getInput(query);
if (Input.githubInputEnabled && coreInput && coreInput !== '') {
return coreInput;
}
return Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined
? Input.cliOptions[query]

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,6 @@ describe('Cloud Runner', () => {
};
if (Input.cloudRunnerTests) {
it('All build parameters sent to cloud runner as env vars', async () => {
Input.githubInputEnabled = false;
const buildParameter = await BuildParameters.create();
const baseImage = new ImageTag(buildParameter);
const file = await CloudRunner.run(buildParameter, baseImage.toString());

View File

@ -20,8 +20,9 @@ class Input {
return Input.getInput(`cloudRunnerTests`) || Input.getInput(`CloudRunnerTests`) || false;
}
private static getInput(query) {
if (Input.githubInputEnabled) {
return core.getInput(query) || '';
const coreInput = core.getInput(query);
if (Input.githubInputEnabled && coreInput && coreInput !== '') {
return coreInput;
}
return Input.cliOptions !== undefined && Input.cliOptions[query] !== undefined