File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -107,26 +107,16 @@ jobs:
107107 - name : Create Pull Request
108108 id : create_pr
109109 run : |
110- PR_DATA=$( gh pr create \
110+ gh pr create \
111111 --title "Article draft: ${{ steps.extract.outputs.title }}" \
112112 --body "This PR was automatically generated from issue #${{ github.event.issue.number }}. Closes #${{ github.event.issue.number }}" \
113113 --head "articles/${{ steps.extract.outputs.fileid }}" \
114- --base main \
115- --json number,url)
116-
117- echo "$PR_DATA"
118-
119- PR_NUMBER=$(echo "$PR_DATA" | jq -r '.number')
120- PR_URL=$(echo "$PR_DATA" | jq -r '.url')
121-
122- echo "pr_number=$PR_NUMBER" >> "$GITHUB_OUTPUT"
123- echo "pr_url=$PR_URL" >> "$GITHUB_OUTPUT"
114+ --base main
124115
125116 - name : Comment on the original Issue
126117 uses : peter-evans/create-or-update-comment@v3
127118 with :
128119 issue-number : ${{ github.event.issue.number }}
129120 body : |
130- A pull request has been created to draft your article: [#${{ steps.create_pr.outputs.pr_number }}](${{ steps.create_pr.outputs.pr_url }}).
131-
121+ A pull request has been created to draft your article!
132122 Thank you for your contribution! 🚀
You can’t perform that action at this time.
0 commit comments