File tree Expand file tree Collapse file tree 2 files changed +7
-14
lines changed
Expand file tree Collapse file tree 2 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 88 uses : actions/checkout@v2
99
1010 - name : Run create-discussion-comment
11- uses : wesleyscholl/create-discussion-comment@v1.0.17
11+ uses : wesleyscholl/create-discussion-comment@v1.0.18
1212 id : create-comment
1313 with :
1414 discussion-id : ' D_kwDOKEe7W84AVXOO'
Original file line number Diff line number Diff line change @@ -33,18 +33,11 @@ runs:
3333 run : |
3434 RESPONSE=$(curl -v -X POST -H "Authorization: bearer ${{inputs.token}}" -H "Content-Type: application/json" -d '{"query": "mutation { addDiscussionComment(input: {body: \"${{inputs.body}}\" discussionId: \"${{inputs.discussion-id}}\" clientMutationId: \"${{inputs.client-mutation-id}}\"}) { clientMutationId comment { id body } } }"}' https://api.github.com/graphql)
3535 echo $RESPONSE
36- commentid=$($RESPONSE | jq -r '.data.addDiscussionComment.comment.id')
37- commentbody=$($RESPONSE | jq -r '.data.addDiscussionComment.comment.body')
38- echo "ID=$commentid" >> "$GITHUB_OUTPUT"
39- echo "BODY=$commentbody" >> "$GITHUB_OUTPUT"
40-
41- - name : Get Output Data
42- shell : bash
43- env :
44- ID : ${{ steps.discusscomment.outputs.ID }}
45- BODY : ${{ steps.discusscomment.outputs.BODY }}
46- run : |
47- echo $ID
48- echo $BODY
36+ echo "Comment ID:"
37+ echo $RESPONSE | jq -r '.data.addDiscussionComment.comment.id'
38+ echo "Comment Body:"
39+ echo $RESPONSE | jq -r '.data.addDiscussionComment.comment.body'
40+
41+
4942
5043
You can’t perform that action at this time.
0 commit comments