Initiated the action. #1

Merged
Philipp merged 28 commits from philipp-patch-1 into main 2024-05-28 23:29:17 +02:00
302 changed files with 38387 additions and 20 deletions
Showing only changes of commit ebe1921e5a - Show all commits

View File

@ -1,4 +1,4 @@
name: Infrement version number to max. name: Increment version number to max.
author: Philipp Horstenkamp 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. 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: inputs:

View File

@ -64,16 +64,24 @@ async function increaseVersion(url_pattern, version) {
); );
} }
async function main() { async function main2() {
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);
core.info(`The new version determend is ${current_version}`); core.info(`The new version determend is ${current_version}`);
core.setOutput("current_version", `${current_version}`); core.setOutput("current_version", `${current_version}`);
console.log("::set-output name=current_version::1.2.3"); } catch (error) {
core.info("::set-output name=current_version::1.2.4"); core.setFailed(`Action failed with error: ${error}`);
// return current_version; }
}
// main2();
async function main() {
try {
core.setOutput("current_version", "0.2.10");
core.info(`Output current_version set to 0.2.10`);
} catch (error) { } catch (error) {
core.setFailed(`Action failed with error: ${error}`); core.setFailed(`Action failed with error: ${error}`);
} }