From 5e9debf6f09f714e8ba57fc42c1dc6d9ce4af5bc Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 31 Jan 2023 12:54:16 -0800 Subject: [PATCH 1/2] Add output providing the installed toolchain name --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 04061ef..5aad9db 100644 --- a/action.yml +++ b/action.yml @@ -23,6 +23,9 @@ outputs: cachekey: description: A short hash of the rustc version, appropriate for use as a cache key. "20220627a831" value: ${{steps.rustc-version.outputs.cachekey}} + name: + description: Rustup's name for this version of the toolchain, suitable for use with `${{'cargo +${{steps.toolchain.outputs.name}}'}}`. + value: ${{steps.parse.outputs.toolchain}} runs: using: composite From 0c819c96411b678bad1b30b8d140a33d7f5b1621 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 31 Jan 2023 13:00:20 -0800 Subject: [PATCH 2/2] Fix CI workflow parse error Error: /home/runner/work/rust-toolchain/rust-toolchain/./action.yml (Line: 27, Col: 18): A template expression is not allowed in this context Error: /home/runner/work/rust-toolchain/rust-toolchain/./action.yml (Line: 27, Col: 18): A template expression is not allowed in this context Error: GitHub.DistributedTask.ObjectTemplating.TemplateValidationException: The template is not valid. /home/runner/work/rust-toolchain/rust-toolchain/./action.yml (Line: 27, Col: 18): A template expression is not allowed in this context at GitHub.DistributedTask.ObjectTemplating.TemplateValidationErrors.Check() at GitHub.Runner.Worker.ActionManifestManager.ConvertRuns(IExecutionContext executionContext, TemplateContext templateContext, TemplateToken inputsToken, String fileRelativePath, MappingToken outputs) at GitHub.Runner.Worker.ActionManifestManager.Load(IExecutionContext executionContext, String manifestFile) Error: Fail to load /home/runner/work/rust-toolchain/rust-toolchain/./action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5aad9db..97af51c 100644 --- a/action.yml +++ b/action.yml @@ -24,7 +24,7 @@ outputs: description: A short hash of the rustc version, appropriate for use as a cache key. "20220627a831" value: ${{steps.rustc-version.outputs.cachekey}} name: - description: Rustup's name for this version of the toolchain, suitable for use with `${{'cargo +${{steps.toolchain.outputs.name}}'}}`. + description: Rustup's name for the selected version of the toolchain. "1.62.0" # suitable for use with `cargo +${{steps.toolchain.outputs.name}}` value: ${{steps.parse.outputs.toolchain}} runs: