File tree 3 files changed +6
-1
lines changed 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Setup Helm
2
2
#### Install a specific version of helm binary on the runner.
3
3
4
- Acceptable values are latest or any semantic version string like 1.15.0. Use this action in workflow to define which version of helm will be used.
4
+ Acceptable values are latest or any semantic version string like v2.16.7 Use this action in workflow to define which version of helm will be used.
5
5
6
6
``` yaml
7
7
- uses : azure/setup-helm@v1
Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ function run() {
130
130
if ( version . toLocaleLowerCase ( ) === 'latest' ) {
131
131
version = yield getStableHelmVersion ( ) ;
132
132
}
133
+ else if ( ! version . toLocaleLowerCase ( ) . startsWith ( 'v' ) ) {
134
+ version = 'v' + version ;
135
+ }
133
136
let cachedPath = yield downloadHelm ( version ) ;
134
137
try {
135
138
if ( ! process . env [ 'PATH' ] . startsWith ( path . dirname ( cachedPath ) ) ) {
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ async function run() {
119
119
let version = core . getInput ( 'version' , { 'required' : true } ) ;
120
120
if ( version . toLocaleLowerCase ( ) === 'latest' ) {
121
121
version = await getStableHelmVersion ( ) ;
122
+ } else if ( ! version . toLocaleLowerCase ( ) . startsWith ( 'v' ) ) {
123
+ version = 'v' + version ;
122
124
}
123
125
124
126
let cachedPath = await downloadHelm ( version ) ;
You can’t perform that action at this time.
0 commit comments