fix: update Helm fallback to v4.3.1 (#314)

This commit is contained in:
Suneha Bose
2026-11-05 12:34:19 -05:00
committed by GitHub
parent 531fb92ec6
commit 1548e57b4d
3 changed files with 6 additions and 8 deletions
+2 -4
View File
@@ -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
View File
@@ -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')