Added a test for the output.
All checks were successful
Try out action / pre-commit Autoupdate (push) Successful in 23s
Lint / pre-commit Autoupdate (push) Successful in 53s

This commit is contained in:
Philipp Horstenkamp 2024-05-28 22:23:01 +02:00
parent 5c3e32d200
commit c85d2fd10e
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
5 changed files with 8 additions and 4 deletions

View File

@ -18,3 +18,4 @@ jobs:
with: with:
url-pattern: https://dl.gitea.com/act_runner/{{VERSION}}/act_runner-{{VERSION}}-linux-arm-7 url-pattern: https://dl.gitea.com/act_runner/{{VERSION}}/act_runner-{{VERSION}}-linux-arm-7
start-version: 0.1.1 start-version: 0.1.1
- run: 'echo Version found and result returned: "${{steps.version-up.outputs.current_version}}"'

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
node_modules/.cache/**
node_modules/.cache/prettier/
node_modules/.cache/prettier/.prettier-caches/*.json
node_modules/.cache/prettier/.prettier-caches/706f51a62288b0ed1d148f635575b4d90c61cdcf.json

View File

@ -8,8 +8,8 @@ inputs:
description: The version number with wich to start. description: The version number with wich to start.
required: true required: true
outputs: outputs:
max_version: current_version:
description: The maximum downloadable version found. description: The maximum currently downloadable version found.
runs: runs:
using: node12 using: node12

View File

@ -70,7 +70,7 @@ async function main() {
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);
core.info(`The new version determend is ${current_version}`); core.info(`The new version determend is ${current_version}`);
core.setOutput("max_version", current_version); core.setOutput("current_version", current_version);
return current_version; return current_version;
} catch (error) { } catch (error) {
core.setFailed(`Action failed with error: ${error}`); core.setFailed(`Action failed with error: ${error}`);

View File

@ -1 +0,0 @@
{"0a9cd11a33d0e683718dc953b18cd8ddd9b4087f":{"files":{"index.js":["eet1sBLWVjGy4Iu3o3sSkhGQCig=",true]},"modified":1716927105637}}