From dc598d501a799e043b6d5c04ab8e075091d58542 Mon Sep 17 00:00:00 2001 From: lethosor Date: Sat, 11 Apr 2020 02:24:40 -0400 Subject: [PATCH] Limit entire check-pr job to PRs only --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a585b6e80..f737a1539 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -99,9 +99,9 @@ jobs: python travis/script-syntax.py --ext=rb --cmd="ruby -c" check-pr: runs-on: ubuntu-latest + if: github.event_name == 'pull_request' steps: - name: Check that PR is based on develop branch - if: github.event_name == 'pull_request' env: BASE_BRANCH: ${{ github.base_ref }} run: |