This commit is contained in:
Simon Cropp 2021-05-04 10:32:11 +10:00
Родитель 8de4ad5534
Коммит 5386155e91
1 изменённых файлов: 4 добавлений и 19 удалений

23
.github/workflows/merge-dependabot.yml поставляемый
Просмотреть файл

@ -1,27 +1,12 @@
name: merge-dependabot
on:
pull_request:
- pull_request_target
jobs:
worker:
run:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: automerge
uses: actions/github-script@0.2.0
- uses: tjenkinson/gh-action-auto-merge-dependency-updates@v1
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}}
allowed-actors: dependabot-preview[bot], dependabot[bot]