Skip to content

Commit

Permalink
github-actions-bot: replace 'octokit/request-action' action (graphql#…
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Mar 28, 2022
1 parent f3248cd commit def26e6
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/github-actions-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
outputs:
cmd: ${{ steps.parse-cmd.outputs.cmd }}
replyMessage: ${{ steps.parse-cmd.outputs.replyMessage }}
pullRequestJSON: ${{ steps.get-pull_request-json.outputs.data }}
pullRequestJSON: ${{ steps.parse-cmd.outputs.pullRequestJSON }}
steps:
- uses: actions/github-script@v5
with:
Expand All @@ -72,15 +72,11 @@ jobs:
uses: actions/github-script@v5
with:
script: |
const cmd = context.payload.comment.body.replace('@github-actions', '').trim();
core.setOutput('cmd', cmd);
const comment = context.payload.comment.body;
core.setOutput('cmd', comment.replace('@github-actions ', '').trim());
- id: get-pull_request-json
uses: octokit/[email protected]
with:
route: GET ${{ github.event.issue.pull_request.url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
const { url } = context.payload.issue.pull_request;
core.setOutput('pullRequestJSON', await github.request(url));
cmd-publish-pr-on-npm:
needs: [accept-cmd]
Expand Down

0 comments on commit def26e6

Please sign in to comment.