fix: update Helm fallback to v4.3.1 (#314)
This commit is contained in:
+2
-4
@@ -229,12 +229,10 @@ describe('run.ts', () => {
|
||||
const fetchSpy = vi
|
||||
.spyOn(globalThis, 'fetch')
|
||||
.mockRejectedValue(new Error(errorMessage))
|
||||
expect(await getLatestHelmVersionWithoutDelay()).toBe(
|
||||
run.stableHelmVersion
|
||||
)
|
||||
expect(await getLatestHelmVersionWithoutDelay()).toBe('v4.3.1')
|
||||
expect(fetchSpy).toHaveBeenCalledTimes(3)
|
||||
expect(core.warning).toHaveBeenCalledWith(
|
||||
expect.stringContaining(errorMessage)
|
||||
`Error while fetching latest Helm release: ${errorMessage}. Using default version v4.3.1. Set 'latest-fallback' to 'false' to fail the step instead`
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import * as toolCache from '@actions/tool-cache'
|
||||
import * as core from '@actions/core'
|
||||
|
||||
const helmToolName = 'helm'
|
||||
export const stableHelmVersion = 'v3.18.4'
|
||||
export const stableHelmVersion = 'v4.3.1'
|
||||
|
||||
export async function run() {
|
||||
let version = core.getInput('version')
|
||||
|
||||
Reference in New Issue
Block a user