Change code according to review points

This commit is contained in:
Ivan Zosimov (Akvelon INC) 2022-02-28 14:02:27 +03:00
parent fc2e404438
commit 86d1cd689b
5 changed files with 443 additions and 47 deletions

View file

@ -18,7 +18,9 @@ export async function run() {
// stable will be true unless false is the exact input
// since getting unstable versions should be explicit
let stable = (core.getInput('stable') || 'true').toUpperCase() === 'TRUE';
const cache = core.getBooleanInput('cache');
const cacheInput = core.getInput('cache');
const cache = cacheInput.toUpperCase() === 'TRUE' ? 'default' : cacheInput;
core.info(`Setup go ${stable ? 'stable' : ''} version spec ${versionSpec}`);