Skip to content

Commit 0c83d01

Browse files
committed
fix: move inline ${{ }} expressions to env vars to fix YAML parse error on line 69
1 parent 3ee4191 commit 0c83d01

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/process-issue.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,30 +54,35 @@ jobs:
5454
- name: Create branch and pull request
5555
env:
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
ISSUE_NUMBER: ${{ github.event.issue.number }}
58+
ISSUE_TITLE: ${{ github.event.issue.title }}
59+
ISSUE_AUTHOR: ${{ github.event.issue.user.login }}
5760
run: |
58-
BRANCH="add-entry/issue-${{ github.event.issue.number }}"
61+
BRANCH="add-entry/issue-${ISSUE_NUMBER}"
5962
git config user.name "github-actions[bot]"
6063
git config user.email "github-actions[bot]@users.noreply.github.com"
6164
git checkout -b "$BRANCH"
6265
git add data/ docs/data.json docs/index.html README.md
63-
git commit -m "feat: add entry from issue #${{ github.event.issue.number }}"
66+
git commit -m "feat: add entry from issue #${ISSUE_NUMBER}"
6467
git push origin "$BRANCH"
65-
gh pr create \
66-
--title "Add entry: ${{ github.event.issue.title }}" \
67-
--body "Resolves #${{ github.event.issue.number }}
68+
PR_BODY="Resolves #${ISSUE_NUMBER}
6869
69-
Auto-generated from issue by @${{ github.event.issue.user.login }}.
70+
Auto-generated from issue by @${ISSUE_AUTHOR}.
7071

71-
**Please review the entry before merging.**" \
72+
**Please review the entry before merging.**"
73+
gh pr create \
74+
--title "Add entry: ${ISSUE_TITLE}" \
75+
--body "$PR_BODY" \
7276
--head "$BRANCH" \
7377
--base main \
7478
--label "review-needed"
7579

7680
- name: Comment on issue
7781
env:
7882
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
ISSUE_NUMBER: ${{ github.event.issue.number }}
7984
run: |
80-
gh issue comment ${{ github.event.issue.number }} \
85+
gh issue comment "${ISSUE_NUMBER}" \
8186
--body "✅ 감사합니다! PR이 자동으로 생성되었습니다. 관리자 검토 후 머지됩니다.
8287
8388
Thanks! A PR has been automatically created from this issue and is pending admin review."

0 commit comments

Comments
 (0)