-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge dependabot PRs that pass CI checks
- Loading branch information
Mark
committed
Nov 24, 2020
1 parent
f9b589a
commit d678d07
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: 'Dependabot Automerge - Action' | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
worker: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- name: automerge | ||
uses: actions/github-script@0.2.0 | ||
with: | ||
script: | | ||
github.pullRequests.createReview({ | ||
owner: context.payload.repository.owner.login, | ||
repo: context.payload.repository.name, | ||
pull_number: context.payload.pull_request.number, | ||
event: 'APPROVE' | ||
}) | ||
github.pullRequests.merge({ | ||
owner: context.payload.repository.owner.login, | ||
repo: context.payload.repository.name, | ||
pull_number: context.payload.pull_request.number | ||
}) | ||
github-token: ${{github.token}} |