Testing with even more simplifiction in the js. file.
All checks were successful
Try out action / Try action (push) Successful in 16s
Try out action / test-job (push) Successful in 0s
Lint / pre-commit Autoupdate (push) Successful in 40s

This commit is contained in:
Philipp Horstenkamp 2024-05-28 23:01:38 +02:00
parent db0744d470
commit ebe1921e5a
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
3 changed files with 71 additions and 63 deletions

View File

@ -1,4 +1,4 @@
name: Infrement version number to max.
name: Increment version number to max.
author: Philipp Horstenkamp
description: Increases a version number until the the version number is invalid. Onyl updates minor and below. No support for previews. Only Semantic numbers are supported.
inputs:

View File

@ -64,16 +64,24 @@ async function increaseVersion(url_pattern, version) {
);
}
async function main() {
async function main2() {
try {
const url_pattern = core.getInput("url-pattern");
const start_version = core.getInput("start-version");
const current_version = await increaseVersion(url_pattern, start_version);
core.info(`The new version determend is ${current_version}`);
core.setOutput("current_version", `${current_version}`);
console.log("::set-output name=current_version::1.2.3");
core.info("::set-output name=current_version::1.2.4");
// return 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}`);
}