Skip to content

Commit 7ef9180

Browse files
added token
1 parent b5b37e8 commit 7ef9180

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/create-article-from-issue.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ jobs:
102102
103103
- name: Create Pull Request
104104
run: |
105-
gh pr create \
106-
--title "Article draft: ${{ steps.extract.outputs.title }}" \
107-
--body "This PR was automatically generated from issue #${{ github.event.issue.number }}.\n\nCloses #${{ github.event.issue.number }}" \
108-
--head "articles/${{ steps.extract.outputs.fileid }}" \
109-
--base main
105+
gh pr create \
106+
--title "Article draft: ${{ steps.extract.outputs.title }}" \
107+
--body "This PR was automatically generated from issue #${{ github.event.issue.number }}.\n\nCloses #${{ github.event.issue.number }}" \
108+
--head "articles/${{ steps.extract.outputs.fileid }}" \
109+
--base main
110+
env:
111+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110112

111113
- name: Comment on the original Issue
112114
uses: peter-evans/create-or-update-comment@v3

0 commit comments

Comments
 (0)