From 66c163fe6ea30d8ebf545dcb85663fb1908ccfe8 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Fri, 22 Sep 2023 19:00:16 +1200 Subject: [PATCH] :ambulance: Try surrounding conditional statement in quotes Another try to see if it's possible to get around `Error: /home/runner/work/conda-lock-refresh/conda-lock-refresh/./action.yml: (Line: 55, Col: 38, Idx: 1521) - (Line: 55, Col: 38, Idx: 1521): Mapping values are not allowed in this context. Error: System.ArgumentException: Unexpected type '' encountered while reading 'action manifest root'. The type 'MappingToken' was expected` --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 3426a84..2572f8a 100644 --- a/action.yml +++ b/action.yml @@ -52,7 +52,7 @@ runs: rm --force conda-lock.yml conda-lock lock $MAMBA --file ${{ inputs.file }} --kind ${{ inputs.kind }} --platform ${{ inputs.platform }} env: - MAMBA: ${{ fromJSON('{"false": "--no-mamba", "true": "--mamba"}')[inputs.mamba] }} + MAMBA: "${{ fromJSON('{"false": "--no-mamba", "true": "--mamba"}')[inputs.mamba] }}" shell: bash -l {0} # Print contents of lockfile