Added a test for the output.
This commit is contained in:
parent
5c3e32d200
commit
c85d2fd10e
@ -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
4
.gitignore
vendored
Normal 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
|
@ -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
|
||||||
|
2
index.js
2
index.js
@ -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}`);
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{"0a9cd11a33d0e683718dc953b18cd8ddd9b4087f":{"files":{"index.js":["eet1sBLWVjGy4Iu3o3sSkhGQCig=",true]},"modified":1716927105637}}
|
|
Loading…
x
Reference in New Issue
Block a user