Another experiment.
All checks were successful
Try out action / Try action (push) Successful in 16s
Try out action / test-job (push) Successful in 0s
Lint / pre-commit Autoupdate (push) Successful in 52s

This commit is contained in:
Philipp Horstenkamp 2024-05-28 23:12:44 +02:00
parent a6620e55c0
commit c79ac64729
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
3 changed files with 8 additions and 1 deletions

View File

@ -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}}"

View File

@ -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.

View File

@ -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}`);