Initiated the action. #1

Merged
Philipp merged 28 commits from philipp-patch-1 into main 2024-05-28 23:29:17 +02:00
3 changed files with 8 additions and 1 deletions
Showing only changes of commit c79ac64729 - Show all commits

View File

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

View File

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

View File

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