From cc1c4669b3e513fe7cd2da2ee0972a31a384b52e Mon Sep 17 00:00:00 2001 From: Dor Date: Tue, 14 Feb 2023 08:48:33 +0200 Subject: [PATCH] Add input `asset-url` --- src/install.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.ts b/src/install.ts index b854030..668daf5 100644 --- a/src/install.ts +++ b/src/install.ts @@ -35,7 +35,7 @@ const getAssetURL = (versionConfig: VersionConfig): string => { export async function installLint(versionConfig: VersionConfig): Promise { core.info(`Installing golangci-lint ${versionConfig.TargetVersion}...`) const startedAt = Date.now() - const assetURL = getAssetURL(versionConfig) + const assetURL = = core.getInput('asset-url') ?? getAssetURL(versionConfig) core.info(`Downloading ${assetURL} ...`) const archivePath = await tc.downloadTool(assetURL) let extractedDir = ""