-
Hi, I'm running
steps:
- uses: mikefarah/yq@v4.35.2
with:
cmd: echo ${{ inputs.releaseNotes }} | yq 'to_entries | map(["## " + .key] + (.value | map("- " + .))) | flatten | join("\n")'
steps:
- uses: mikefarah/yq@v4.35.2
with:
cmd: echo ${{ inputs.releaseNotes }} | yq -pj 'to_entries | map(["## " + .key] + (.value | map("- " + .))) | flatten | join("\n")' The input is ## title
- content1
- content2 |
Beta Was this translation helpful? Give feedback.
Answered by
just-ero
Sep 29, 2023
Replies: 1 comment
-
The issue was that |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
just-ero
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue was that
${{ inputs.releaseNotes }}
was not wrapped in quotes.echo "${{ inputs.releaseNotes }}"
worked correctly.