Trying to reformatte for output resutls.
All checks were successful
Try out action / pre-commit Autoupdate (push) Successful in 23s
Lint / pre-commit Autoupdate (push) Successful in 52s

This commit is contained in:
Philipp Horstenkamp 2024-05-28 22:29:24 +02:00
parent f7e8a9bdb8
commit 28d12a6ad0
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4
2 changed files with 3 additions and 2 deletions

View File

@ -18,4 +18,5 @@ 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}}"'
- run: 'echo Version found and result returned: "${{steps.version-up.outputs.current_version}}"' - run: 'echo Version found and result returned: "${{steps.version-up.outputs.current_version}}"'

View File

@ -43,7 +43,7 @@ async function increaseVersionPart(url_pattern, version, version_part) {
version_parsed.patch + 1 version_parsed.patch + 1
}`; }`;
} else { } 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 { } else {
return version; return version;
@ -71,7 +71,7 @@ async function main() {
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("current_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}`);
} }