mirror of
https://github.com/opentofu/setup-opentofu.git
synced 2026-11-29 11:34:36 +01:00
feat: added versions resolution logic to use user's input.
Signed-off-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
4 files changed
+7
-5
No files matched your search
@@ -137,7 +137,6 @@ async function run () {
|
||||
const release = await releases.getRelease(version);
|
||||
const platform = mapOS(osPlatform);
|
||||
const arch = mapArch(osArch);
|
||||
core.debug(`Getting build for OpenTofu version ${release.version}: ${platform} ${arch}`);
|
||||
const build = release.getBuild(platform, arch);
|
||||
if (!build) {
|
||||
throw new Error(`OpenTofu version ${version} not available for ${platform} and ${arch}`);
|
||||
|
||||
Reference in new issue
Block a user