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
I tried using https://yaml-online-parser.appspot.com to parse the yaml to check the block chomping |+ setting and it appears to be correct (replacing GitHub vars with cell1,cell2,cell3 e.g
contents: |+
cell1,cell2,cell3
write-mode: append
The output includes multiple \n\n at the end of the string as expected but when running within the action, it just appends the last line without line breaks.
Also strange, it appears to work differently on the first run - hope this makes sense.
Step 1
Start data.csv with single line for columns (no line breaks)
Trying to use the action to update a csv file but line breaks don't seem to be working with YAML block chomping (keep).
Example below reads a new issue and adds to a csv.
I tried using https://yaml-online-parser.appspot.com to parse the yaml to check the block chomping
|+
setting and it appears to be correct (replacing GitHub vars with cell1,cell2,cell3 e.gThe output includes multiple \n\n at the end of the string as expected but when running within the action, it just appends the last line without line breaks.
Also strange, it appears to work differently on the first run - hope this makes sense.
Step 1
Start data.csv with single line for columns (no line breaks)
Step 2
Run the action. Result is
Works perfectly. Exactly what I'm after
Step3
Run action again, Result is
The second time around, the
|+
setting doesn't seem respected and the last line does not include line breaksI think my YAML is formatted correctly but happy to be told I'm making YAML mistake.
The text was updated successfully, but these errors were encountered: