diff --git a/.gitea/workflows/tryActions.yaml b/.gitea/workflows/tryActions.yaml index 3dc9b82..e88e699 100644 --- a/.gitea/workflows/tryActions.yaml +++ b/.gitea/workflows/tryActions.yaml @@ -19,17 +19,4 @@ jobs: url-pattern: https://dl.gitea.com/act_runner/{{VERSION}}/act_runner-{{VERSION}}-linux-arm-7 start-version: 0.1.1 - run: | - echo Version found and result returned: ${{steps.versionup.outputs.current_version}} echo Output current_version is ${{steps.versionup.outputs.current_version}} - - test-job: - runs-on: pi - steps: - - name: Set output - id: set-output - run: | - echo "::set-output name=current_version::1.2.3" - - 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 8f4d968..c460d22 100644 --- a/action.yaml +++ b/action.yaml @@ -1,6 +1,7 @@ name: Increment version number to max. author: Philipp Horstenkamp description: Increases a version number until the the version number is invalid. Onyl updates minor and below. No support for previews. Only Semantic numbers are supported. + inputs: url-pattern: description: The url from which to download. Needs to contain at least one {{VERSION}} marker to be replaced. @@ -8,9 +9,7 @@ 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 ddca2ba..bdc80c6 100644 --- a/index.js +++ b/index.js @@ -72,9 +72,7 @@ async function main() { 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}`); core.setOutput("current_version", `${current_version}`); } catch (error) { core.setFailed(`Action failed with error: ${error}`);