Made another experiment.

This commit is contained in:
Philipp Horstenkamp 2024-05-28 23:10:04 +02:00
parent ebe1921e5a
commit 8db6cdec18
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -64,27 +64,18 @@ async function increaseVersion(url_pattern, version) {
); );
} }
async function main2() { async function main() {
try { try {
const url_pattern = core.getInput("url-pattern"); const url_pattern = core.getInput("url-pattern");
const start_version = core.getInput("start-version"); const start_version = core.getInput("start-version");
const current_version = await increaseVersion(url_pattern, 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}`); core.info(`The new version determend is ${current_version}`);
exportVariable("current_version", `${current_version}`);
core.setOutput("current_version", `${current_version}`); core.setOutput("current_version", `${current_version}`);
} catch (error) { } catch (error) {
core.setFailed(`Action failed with error: ${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(); main();