mirror of
https://github.com/actions/setup-go.git
synced 2025-07-18 12:55:16 -06:00
add type conversion
This commit is contained in:
parent
ece959cf2b
commit
b7bdf8dcd0
6 changed files with 83 additions and 58 deletions
|
@ -30,16 +30,13 @@ export async function run() {
|
|||
let token = core.getInput('token');
|
||||
let auth = !token ? undefined : `token ${token}`;
|
||||
|
||||
const manifest = await installer.getManifest(auth);
|
||||
|
||||
const checkLatest = core.getBooleanInput('check-latest');
|
||||
|
||||
const installDir = await installer.getGo(
|
||||
versionSpec,
|
||||
checkLatest,
|
||||
auth,
|
||||
arch,
|
||||
manifest
|
||||
arch
|
||||
);
|
||||
|
||||
const installDirVersion = path.basename(path.dirname(installDir));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue