Skip to content

Commit

Permalink
changed github token and script version
Browse files Browse the repository at this point in the history
  • Loading branch information
saifbechan committed Mar 16, 2021
1 parent cd91b28 commit ff3af29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ jobs:
wait-on: http://localhost:3030

- name: Auto merge
uses: actions/github-script@0.2.0
uses: actions/github-script@v3
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.pullRequests.createReview({
github.pulls.createReview({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
})
github.pullRequests.merge({
github.pulls.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})
github-token: ${{ secrets.GITHUB_TOKEN }}

1 comment on commit ff3af29

@vercel
Copy link

@vercel vercel bot commented on ff3af29 Mar 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.