updated code

This commit is contained in:
shaanmugapriya 2024-02-12 18:28:58 +05:30
parent 66808a5f19
commit e9d3438387

View File

@ -22,7 +22,7 @@ export type QualityOptions = (typeof qualityOptions)[number];
let cancelled = false; let cancelled = false;
let errorOccurred = false; let errorOccurred = false;
let unsupportedPlatform = false; const unsupportedPlatform = false;
process.on('SIGINT', () => { process.on('SIGINT', () => {
cancelled = true; cancelled = true;
}); });
@ -99,7 +99,6 @@ export async function run() {
const cacheDependencyPath = core.getInput('cache-dependency-path'); const cacheDependencyPath = core.getInput('cache-dependency-path');
await restoreCache(cacheDependencyPath); await restoreCache(cacheDependencyPath);
} }
} catch (error) { } catch (error) {
core.setFailed(error.message); core.setFailed(error.message);
errorOccurred = true; errorOccurred = true;
@ -126,6 +125,7 @@ export async function run() {
} }
} }
} }
}
function getVersionFromGlobalJson(globalJsonPath: string): string { function getVersionFromGlobalJson(globalJsonPath: string): string {
let version = ''; let version = '';