You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jobs:
convert-to-json:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- name: This outputs multiline JSONuses: mikefarah/yq@v4.12.2id: actwith:
cmd: yq eval --output-format=json 'config.yml'
- name: But we get only the first line hereenv:
ACT_RESULT: ${{ steps.act.outputs.result }} # = "{"run: echo "${ACT_RESULT}"
Describe the solution you'd like
If yq produces a multiline output, the entire output is store in the outputs.result
Please describe your feature request.
Support multiline outputs in the Github Actions
Even though
yq
produces a multiline output, only the first line of it is stored in theoutputs.result
Current behaviour:
example: https://github.com/pjxiao/yq-action/runs/3577428434
Describe the solution you'd like
If
yq
produces a multiline output, the entire output is store in theoutputs.result
Expected behaviour:
example: https://github.com/pjxiao/yq-action/runs/3577428423
Additional context
yq
as a YAML/JSON converterThe text was updated successfully, but these errors were encountered: