diff --git a/index.js b/index.js index 5eb2811..691e8b1 100644 --- a/index.js +++ b/index.js @@ -64,27 +64,18 @@ async function increaseVersion(url_pattern, version) { ); } -async function main2() { +async function main() { try { const url_pattern = core.getInput("url-pattern"); const start_version = core.getInput("start-version"); const current_version = await increaseVersion(url_pattern, start_version); + const export_to = core.getInput("export-to"); core.info(`The new version determend is ${current_version}`); + exportVariable("current_version", `${current_version}`); core.setOutput("current_version", `${current_version}`); } catch (error) { core.setFailed(`Action failed with error: ${error}`); } } -// main2(); - -async function main() { - try { - core.setOutput("current_version", "0.2.10"); - core.info(`Output current_version set to 0.2.10`); - } catch (error) { - core.setFailed(`Action failed with error: ${error}`); - } -} - main();