Initiated the action. #1

Merged
Philipp merged 28 commits from philipp-patch-1 into main 2024-05-28 23:29:17 +02:00
Showing only changes of commit 8db6cdec18 - Show all commits

View File

@ -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();