File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 57
57
outputs :
58
58
cmd : ${{ steps.parse-cmd.outputs.cmd }}
59
59
replyMessage : ${{ steps.parse-cmd.outputs.replyMessage }}
60
- pullRequestJSON : ${{ steps.get-pull_request-json .outputs.data }}
60
+ pullRequestJSON : ${{ steps.parse-cmd .outputs.pullRequestJSON }}
61
61
steps :
62
62
- uses : actions/github-script@v5
63
63
with :
@@ -72,15 +72,11 @@ jobs:
72
72
uses : actions/github-script@v5
73
73
with :
74
74
script : |
75
- const cmd = context.payload.comment.body.replace('@github-actions', '').trim() ;
76
- core.setOutput('cmd', cmd );
75
+ const comment = context.payload.comment.body;
76
+ core.setOutput('cmd', comment.replace('@github-actions ', '').trim() );
77
77
78
- - id : get-pull_request-json
79
- uses : octokit/request-action@v2.x
80
- with :
81
- route : GET ${{ github.event.issue.pull_request.url }}
82
- env :
83
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78
+ const { url } = context.payload.issue.pull_request;
79
+ core.setOutput('pullRequestJSON', await github.request(url));
84
80
85
81
cmd-publish-pr-on-npm :
86
82
needs : [accept-cmd]
You can’t perform that action at this time.
0 commit comments