Skip to content

Commit 5423b1a

Browse files
Copilotmrjf
andauthored
fix: preserve final newline when writing wiki pages (#274)
* Initial plan * fix: use printf '%s\n' to preserve final newline in wiki pages Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com> Co-authored-by: Russell Horton <mrjf@github.com>
1 parent ca74272 commit 5423b1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

workflows/agentic-wiki-writer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ safe-outputs:
7070
jq -r '.items[] | select(.type == "push_wiki") | .files | fromjson | to_entries[] | @base64' "$GH_AW_AGENT_OUTPUT" | while IFS= read -r entry; do
7171
FILENAME=$(printf '%s' "$entry" | base64 -d | jq -r '.key')
7272
CONTENT=$(printf '%s' "$entry" | base64 -d | jq -r '.value')
73-
printf '%s' "$CONTENT" > "$FILENAME"
73+
printf '%s\n' "$CONTENT" > "$FILENAME"
7474
done
7575
- name: Commit and push
7676
run: |

0 commit comments

Comments
 (0)