Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig O'Donnell committed Feb 27, 2024
1 parent 9f060ec commit 321e04e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kots-install/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as fs from 'fs';

async function run() {

const licenseFileInput = core.getInput('license-file')
const licenseFileInput = core.getInput('license-file');
let licenseFilePath = '';
if (fs.existsSync(licenseFileInput)) {
licenseFilePath = licenseFileInput;
Expand All @@ -15,14 +15,14 @@ async function run() {
licenseFilePath = licensePath;
}

const configValuesInput = core.getInput('config-values')
const configValuesInput = core.getInput('config-values');
let valuesFilePath = '';
if (configValuesInput) {
if (fs.existsSync(configValuesInput)) {
valuesFilePath = configValuesInput;
} else {
const {path: valuesPath} = await file({postfix: '.yaml'});
fs.writeFileSync(valuesPath, core.getInput('config-values'));
fs.writeFileSync(valuesPath, configValuesInput);
valuesFilePath = valuesPath;
}
}
Expand Down

0 comments on commit 321e04e

Please sign in to comment.