From 28d12a6ad09e2a14405d1cf35f7d11c9d0bcb917 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Tue, 28 May 2024 22:29:24 +0200 Subject: [PATCH] Trying to reformatte for output resutls. --- .gitea/workflows/tryActions.yaml | 1 + index.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/tryActions.yaml b/.gitea/workflows/tryActions.yaml index 923bbf9..96fd8bd 100644 --- a/.gitea/workflows/tryActions.yaml +++ b/.gitea/workflows/tryActions.yaml @@ -18,4 +18,5 @@ jobs: with: 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.version-up.outputs}}"' - run: 'echo Version found and result returned: "${{steps.version-up.outputs.current_version}}"' diff --git a/index.js b/index.js index c6182fa..b2f38a0 100644 --- a/index.js +++ b/index.js @@ -43,7 +43,7 @@ async function increaseVersionPart(url_pattern, version, version_part) { version_parsed.patch + 1 }`; } else { - throw new Error("The url does not contain an {{VERSION}} marker!"); + throw new Error("The verision part to be updated isn't reconised!"); } } else { return version; @@ -71,7 +71,7 @@ async function main() { const current_version = await increaseVersion(url_pattern, start_version); core.info(`The new version determend is ${current_version}`); core.setOutput("current_version", current_version); - return current_version; + // return current_version; } catch (error) { core.setFailed(`Action failed with error: ${error}`); }