Skip to content

Commit

Permalink
Pass json as environment variables
Browse files Browse the repository at this point in the history
Closes #116

Signed-off-by: Jeroen Knoops <jeroen.knoops@philips.com>
  • Loading branch information
JeroenKnoops committed Jan 14, 2022
1 parent 7510a8c commit a16ebc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ 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)"
encoded_github="$( echo ${GITHUB_CONTEXT} | base64 -w 0)"
encoded_runner="$( echo ${RUNNER_CONTEXT} | base64 -w 0)"
args=(${{ inputs.command }})
args+=(${{ inputs.subcommand }})
Expand All @@ -42,6 +42,9 @@ runs:
args+=(${{ inputs.arguments }})
echo "::set-output name=provenance_args::${args[@]}"
env:
GITHUB_CONTEXT: ${{ inputs.github_context }}
RUNNER_CONTEXT: ${{ inputs.runner_context }}
- name: Debug arguments
shell: bash
run: |
Expand Down

0 comments on commit a16ebc9

Please sign in to comment.