Testing with even more simplifiction in the js. file.
This commit is contained in:
parent
db0744d470
commit
ebe1921e5a
@ -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:
|
||||
|
16
index.js
16
index.js
@ -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}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user