feat: added versions resolution logic to use user's input.

Signed-off-by: Dmitry Kisler <admin@dkisler.com>
This commit is contained in:
Dmitry Kisler 2023-10-10 11:46:36 +02:00
parent c68fac3149
commit 45ec8bfee0
No known key found for this signature in database
GPG key ID: 46C0A987D58548F6
4 changed files with 7 additions and 5 deletions

View file

@ -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}`);