From 294d6d5154d8f057d697da3ebf95ed6668dfa8ad Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Mon, 2 Aug 2021 02:43:53 -0700 Subject: [PATCH] Update pull_request.yml --- .github/workflows/pull_request.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9e039c29..c2bfeb35 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,9 +1,10 @@ -name: Build PR +name: Build PR (Standard) on: [pull_request] jobs: build: runs-on: ${{ matrix.os }} + if: ${{ github.actor != 'dependabot[bot]' && !contains(github.event.pull_request.labels.*.name, 'dependencies') }} strategy: matrix: node-version: [12.x] @@ -20,16 +21,3 @@ jobs: npm run coverage env: 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