Skip to content

Commit

Permalink
Update auto-merge-dependabot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bellaabdelouahab authored Sep 29, 2024
1 parent 6708d45 commit f92b97e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/auto-merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ jobs:

if: github.actor == 'dependabot[bot]'
steps:
- name: automerge
uses: actions/github-script@0.2.0
- name: Automerge
uses: actions/github-script@latest
with:
script: |
github.pullRequests.createReview({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
console.log("Context: ", context);
await github.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
})
github.pullRequests.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
});
await github.pulls.merge({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number
})
github-token: ${{github.token}}
});
github-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f92b97e

Please sign in to comment.