mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-04 00:12:58 +08:00
Update pull_request.yml
This commit is contained in:
parent
ca2866c036
commit
294d6d5154
16
.github/workflows/pull_request.yml
vendored
16
.github/workflows/pull_request.yml
vendored
@ -1,9 +1,10 @@
|
|||||||
name: Build PR
|
name: Build PR (Standard)
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
if: ${{ github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'dependencies') }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x]
|
node-version: [12.x]
|
||||||
@ -20,16 +21,3 @@ jobs:
|
|||||||
npm run coverage
|
npm run coverage
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
- 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() && ${{ github.actor == 'dependabot[bot]' }}
|
|
||||||
uses: peter-evans/close-pull@v1
|
|
||||||
with:
|
|
||||||
pull-request-number: ${{github.event.number}}
|
|
||||||
comment: PR closed due to failing tests
|
|
||||||
delete-branch: true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user