diff --git a/.gitea/workflows/tryActions.yaml b/.gitea/workflows/tryActions.yaml index fc71735..f2b2cf7 100644 --- a/.gitea/workflows/tryActions.yaml +++ b/.gitea/workflows/tryActions.yaml @@ -31,3 +31,4 @@ jobs: - name: Use output run: | echo "Output current_version is ${{steps.set-output.outputs.current_version}}" + echo "Output current_version is ${{current_version}}" diff --git a/action.yaml b/action.yaml index 0c59d2e..8f4d968 100644 --- a/action.yaml +++ b/action.yaml @@ -8,6 +8,9 @@ inputs: start-version: description: The version number with wich to start. required: true + export-to: + description: To what env var to export the version number. + required: false outputs: current_version: description: The maximum currently downloadable version found. diff --git a/index.js b/index.js index 24c1d74..6ddc075 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,10 @@ async function main() { try { const url_pattern = core.getInput("url-pattern"); 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.exportVariable("current_version", `${current_version}`);