Made another experiment.
This commit is contained in:
parent
ebe1921e5a
commit
8db6cdec18
15
index.js
15
index.js
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user