Repository navigation
|
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 |
Answered by
ero-qt
Sep 29, 2023
Replies: 1 comment
|
The issue was that |
0 replies
Answer selected by
ero-qt
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.