This action will convert a json file and all inputs to environment variables.
a json file, will be prefixed with JSON_
all the input variables as json, will be prefixed with INPUT_
- name: convert inputs to environment
uses: 11notes/action-inputs-to-env@v1
with:
json: file.json
input: ${{ toJSON(github.event.inputs) }}