mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-17 16:08:27 +00:00
Add input asset-url
This commit is contained in:
parent
419d0912ea
commit
cc1c4669b3
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ const getAssetURL = (versionConfig: VersionConfig): string => {
|
||||||
export async function installLint(versionConfig: VersionConfig): Promise<string> {
|
export async function installLint(versionConfig: VersionConfig): Promise<string> {
|
||||||
core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`)
|
core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`)
|
||||||
const startedAt = Date.now()
|
const startedAt = Date.now()
|
||||||
const assetURL = getAssetURL(versionConfig)
|
const assetURL = = core.getInput('asset-url') ?? getAssetURL(versionConfig)
|
||||||
core.info(`Downloading ${assetURL} ...`)
|
core.info(`Downloading ${assetURL} ...`)
|
||||||
const archivePath = await tc.downloadTool(assetURL)
|
const archivePath = await tc.downloadTool(assetURL)
|
||||||
let extractedDir = ""
|
let extractedDir = ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue