File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation.
2
- // Copyright (c) Microsoft Corporation.
3
2
// Licensed under the MIT license.
4
3
5
4
import * as os from 'os'
@@ -26,7 +25,7 @@ export async function run() {
26
25
27
26
const downloadBaseURL = core . getInput ( 'downloadBaseURL' , { required : false } )
28
27
29
- core . startGroup ( `Downloading ${ version } ` )
28
+ core . startGroup ( `Installing ${ version } ` )
30
29
const cachedPath = await downloadHelm ( downloadBaseURL , version )
31
30
core . endGroup ( )
32
31
@@ -88,7 +87,10 @@ export async function downloadHelm(
88
87
version : string
89
88
) : Promise < string > {
90
89
let cachedToolpath = toolCache . find ( helmToolName , version )
91
- if ( ! cachedToolpath ) {
90
+ if ( cachedToolpath ) {
91
+ core . info ( `Restoring '${ version } ' from cache` )
92
+ } else {
93
+ core . info ( `Downloading '${ version } ' from '${ baseURL } '` )
92
94
let helmDownloadPath
93
95
try {
94
96
helmDownloadPath = await toolCache . downloadTool (
You can’t perform that action at this time.
0 commit comments