Initiated the action. #1
@ -31,3 +31,4 @@ jobs:
|
|||||||
- name: Use output
|
- name: Use output
|
||||||
run: |
|
run: |
|
||||||
echo "Output current_version is ${{steps.set-output.outputs.current_version}}"
|
echo "Output current_version is ${{steps.set-output.outputs.current_version}}"
|
||||||
|
echo "Output current_version is ${{current_version}}"
|
||||||
|
@ -8,6 +8,9 @@ inputs:
|
|||||||
start-version:
|
start-version:
|
||||||
description: The version number with wich to start.
|
description: The version number with wich to start.
|
||||||
required: true
|
required: true
|
||||||
|
export-to:
|
||||||
|
description: To what env var to export the version number.
|
||||||
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
current_version:
|
current_version:
|
||||||
description: The maximum currently downloadable version found.
|
description: The maximum currently downloadable version found.
|
||||||
|
5
index.js
5
index.js
@ -68,7 +68,10 @@ 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");
|
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}`);
|
||||||
core.exportVariable("current_version", `${current_version}`);
|
core.exportVariable("current_version", `${current_version}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user