Use newer GitHub workflow for auto-merge
This commit is contained in:
11
.github/auto-merge.yml
vendored
Normal file
11
.github/auto-merge.yml
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
- match:
|
||||||
|
dependency_type: all
|
||||||
|
update_type: security:minor # includes patch updates!
|
||||||
|
|
||||||
|
- match:
|
||||||
|
dependency_type: development
|
||||||
|
update_type: semver:minor # includes patch updates!
|
||||||
|
|
||||||
|
- match:
|
||||||
|
dependency_type: production
|
||||||
|
update_type: semver:patch
|
15
.github/workflows/dependabot.yml
vendored
15
.github/workflows/dependabot.yml
vendored
@ -7,19 +7,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Automerge dependabot dependencies
|
- name: Automerge dependabot dependencies
|
||||||
uses: actions/github-script@v3
|
uses: ahmadnassri/action-dependabot-auto-merge@v2
|
||||||
if: github.actor == 'dependabot[bot]'
|
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
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
|
|
||||||
})
|
|
||||||
|
Reference in New Issue
Block a user