diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index f724b0d1..45444dfc 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -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 }}