Skip to content

Commit 79bbce5

Browse files
hotfix: pipe PR body to post correctly
Signed-off-by: Tsung-Ju Lii <[email protected]>
1 parent ff44080 commit 79bbce5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/generate_post_from_pr.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ jobs:
2525
git rm drafts/${DRAFT_TITLE}
2626
2727
DATE=$(date +'%Y-%m-%d')
28-
POST_TITLE="${DATE}-${DRAFT_TITLE}"
29-
PR_BODY=${{ github.event.pull_request.body }}
30-
POST_FILE="posts/${POST_TITLE}.md"
31-
echo "${PR_BODY}" >> $POST_FILE
28+
POST_FILE="posts/${DATE}-${DRAFT_TITLE}.md"
29+
echo "Target: ${POST_FILE}"
30+
cat >$POST_FILE <<EOL
31+
${{ github.event.pull_request.body }}
32+
EOL
33+
echo "Done creating post"
3234
3335
- name: Commit and push changes
3436
run: |

drafts/make-new-post-via-github-pull-request

Whitespace-only changes.

0 commit comments

Comments
 (0)