mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 00:13:44 +00:00
Change code to make it more extandable in future
This commit is contained in:
parent
d450effe85
commit
f2efd31d13
7 changed files with 75 additions and 44 deletions
|
@ -21,13 +21,15 @@ export async function run() {
|
|||
}
|
||||
|
||||
const cachePackages = async () => {
|
||||
const cachingFlag = core.getInput('cache');
|
||||
const cachingFlag = core.getBooleanInput('cache');
|
||||
if (!cachingFlag) return;
|
||||
|
||||
const packageManager = core.getInput('package-manager');
|
||||
|
||||
const state = core.getState(State.CacheMatchedKey);
|
||||
const primaryKey = core.getState(State.CachePrimaryKey);
|
||||
|
||||
const packageManagerInfo = await getPackageManagerInfo();
|
||||
const packageManagerInfo = await getPackageManagerInfo(packageManager);
|
||||
|
||||
const cachePath = await getCacheDirectoryPath(packageManagerInfo);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue