File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
3
+ function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
3
4
return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
4
5
function fulfilled ( value ) { try { step ( generator . next ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
5
6
function rejected ( value ) { try { step ( generator [ "throw" ] ( value ) ) ; } catch ( e ) { reject ( e ) ; } }
6
- function step ( result ) { result . done ? resolve ( result . value ) : new P ( function ( resolve ) { resolve ( result . value ) ; } ) . then ( fulfilled , rejected ) ; }
7
+ function step ( result ) { result . done ? resolve ( result . value ) : adopt ( result . value ) . then ( fulfilled , rejected ) ; }
7
8
step ( ( generator = generator . apply ( thisArg , _arguments || [ ] ) ) . next ( ) ) ;
8
9
} ) ;
9
10
} ;
@@ -74,6 +75,7 @@ function run() {
74
75
version = yield getStableKubectlVersion ( ) ;
75
76
}
76
77
let cachedPath = yield downloadKubectl ( version ) ;
78
+ core . addPath ( path . dirname ( cachedPath ) ) ;
77
79
console . log ( `Kubectl tool version: '${ version } ' has been cached at ${ cachedPath } ` ) ;
78
80
core . setOutput ( 'kubectl-path' , cachedPath ) ;
79
81
} ) ;
Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ async function run() {
70
70
version = await getStableKubectlVersion ( ) ;
71
71
}
72
72
let cachedPath = await downloadKubectl ( version ) ;
73
+
74
+ core . addPath ( path . dirname ( cachedPath ) ) ;
75
+
73
76
console . log ( `Kubectl tool version: '${ version } ' has been cached at ${ cachedPath } ` ) ;
74
77
core . setOutput ( 'kubectl-path' , cachedPath ) ;
75
78
}
You can’t perform that action at this time.
0 commit comments