Skip to content

Commit 01762f4

Browse files
committed
fix: replace multi-line strings in run blocks with printf to fix YAML parse error
1 parent 0c83d01 commit 01762f4

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/process-issue.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ jobs:
6565
git add data/ docs/data.json docs/index.html README.md
6666
git commit -m "feat: add entry from issue #${ISSUE_NUMBER}"
6767
git push origin "$BRANCH"
68-
PR_BODY="Resolves #${ISSUE_NUMBER}
69-
70-
Auto-generated from issue by @${ISSUE_AUTHOR}.
71-
72-
**Please review the entry before merging.**"
68+
PR_BODY=$(printf 'Resolves #%s\n\nAuto-generated from issue by @%s.\n\n**Please review the entry before merging.**' "${ISSUE_NUMBER}" "${ISSUE_AUTHOR}")
7369
gh pr create \
7470
--title "Add entry: ${ISSUE_TITLE}" \
7571
--body "$PR_BODY" \
@@ -82,7 +78,5 @@ Auto-generated from issue by @${ISSUE_AUTHOR}.
8278
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8379
ISSUE_NUMBER: ${{ github.event.issue.number }}
8480
run: |
85-
gh issue comment "${ISSUE_NUMBER}" \
86-
--body "✅ 감사합니다! PR이 자동으로 생성되었습니다. 관리자 검토 후 머지됩니다.
87-
88-
Thanks! A PR has been automatically created from this issue and is pending admin review."
81+
COMMENT=$(printf '✅ 감사합니다! PR이 자동으로 생성되었습니다. 관리자 검토 후 머지됩니다.\n\nThanks! A PR has been automatically created from this issue and is pending admin review.')
82+
gh issue comment "${ISSUE_NUMBER}" --body "$COMMENT"

0 commit comments

Comments
 (0)