GitHubSync update - master
This commit is contained in:
Родитель
8de4ad5534
Коммит
5386155e91
|
@ -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]
|
Загрузка…
Ссылка в новой задаче