mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 09:24:52 +03:00
Use pascalgn/automerge-action instead of script
This commit is contained in:
parent
21bb111561
commit
16cd527d12
25
.github/workflows/automerge-pyup.yml
vendored
25
.github/workflows/automerge-pyup.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: "pyup Automerge"
|
name: "Automerge"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -16,22 +16,11 @@ jobs:
|
||||||
ignoreActions: automerge,WIP
|
ignoreActions: automerge,WIP
|
||||||
checkInterval: 300
|
checkInterval: 300
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: 'automerge'
|
- name: 'Automerge'
|
||||||
uses: actions/github-script@0.2.0
|
uses: pascalgn/automerge-action@v0.11.0
|
||||||
if: steps.waitforstatuschecks.outputs.status == 'success'
|
if: steps.waitforstatuschecks.outputs.status == 'success'
|
||||||
with:
|
env:
|
||||||
script: |
|
MERGE_LABELS: "update"
|
||||||
github.pullRequests.createReview({
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
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}}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user