Skip to content

Commit

Permalink
Merge pull request #117 from philips-labs/fix-single-quote-in-commit
Browse files Browse the repository at this point in the history
Use environment variables to pass context jsons
  • Loading branch information
JeroenKnoops authored Jan 14, 2022
2 parents 7510a8c + a16ebc9 commit 342a668
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 342a668

Please sign in to comment.