Skip to content

Commit

Permalink
Use tmp file to avoid problems with single quotes
Browse files Browse the repository at this point in the history
Closes #116

Signed-off-by: Jeroen Knoops <[email protected]>
  • Loading branch information
JeroenKnoops committed Jan 11, 2022
1 parent 3511795 commit d16c19b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }})
Expand Down

0 comments on commit d16c19b

Please sign in to comment.