mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-19 00:20:25 +02:00
better user output
This commit is contained in:
parent
6b10398c43
commit
a6a701e18e
3 changed files with 18 additions and 0 deletions
|
@ -18,10 +18,13 @@ export async function downloadGo(
|
|||
// download
|
||||
debug(`match ${match.version}`);
|
||||
let downloadUrl: string = `https://storage.googleapis.com/golang/${match.files[0].filename}`;
|
||||
console.log(`Downloading from ${downloadUrl}`);
|
||||
|
||||
let downloadPath: string = await tc.downloadTool(downloadUrl);
|
||||
debug(`downloaded to ${downloadPath}`);
|
||||
|
||||
// extract
|
||||
console.log('Extracting ...');
|
||||
let extPath: string =
|
||||
sys.getPlatform() == 'windows'
|
||||
? await tc.extractZip(downloadPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue