From d16c19b6132f22add2018817f084be8834ef8bbe Mon Sep 17 00:00:00 2001 From: Jeroen Knoops Date: Tue, 11 Jan 2022 17:44:37 +0100 Subject: [PATCH] Use tmp file to avoid problems with single quotes Closes #116 Signed-off-by: Jeroen Knoops --- action.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index fdeacf31..da168df1 100644 --- a/action.yaml +++ b/action.yaml @@ -30,8 +30,13 @@ runs: id: compose-args shell: bash run: | - encoded_github="$(echo '${{ inputs.github_context }}' | base64 -w 0)" - encoded_runner="$(echo '${{ inputs.runner_context }}' | base64 -w 0)" + echo "${{ inputs.github_context }}" > github_context.json + encoded_github="$(cat github_context.json | base64 -w 0)" + rm github_context.json + + echo "${{ inputs.run_context }}" > runner_context.json + encoded_runner="$(cat runner_context.json | base64 -w 0)" + rm runner_context.json args=(${{ inputs.command }}) args+=(${{ inputs.subcommand }})