mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-04-29 01:00:13 +08:00
Update pull_request.yml
This commit is contained in:
parent
f765bbb3ab
commit
ca2866c036
12
.github/workflows/pull_request.yml
vendored
12
.github/workflows/pull_request.yml
vendored
@ -20,14 +20,16 @@ jobs:
|
||||
npm run coverage
|
||||
env:
|
||||
CI: true
|
||||
- name: automerge
|
||||
if: success()
|
||||
- name: Merge PR
|
||||
if: success() && ${{ github.actor == 'dependabot[bot]' }}
|
||||
uses: "pascalgn/automerge-action@v0.14.2"
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
MERGE_LABELS: "dependencies"
|
||||
- name: Reject PR
|
||||
if: failure()
|
||||
uses: superbrothers/close-pull-request@v3
|
||||
if: failure() && ${{ github.actor == 'dependabot[bot]' }}
|
||||
uses: peter-evans/close-pull@v1
|
||||
with:
|
||||
comment: "PR closed due to failing tests."
|
||||
pull-request-number: ${{github.event.number}}
|
||||
comment: PR closed due to failing tests
|
||||
delete-branch: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user