Another experiment.
This commit is contained in:
parent
a6620e55c0
commit
c79ac64729
@ -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}}"
|
||||
|
@ -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.
|
||||
|
5
index.js
5
index.js
@ -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}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user