From d524f1a7d445768512337e07249a386b8c7aa1b1 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 11 Jul 2022 17:03:09 +0200 Subject: [PATCH] Group if together --- .github/workflows/quality.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index f90a99a24b..21d974602f 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -207,7 +207,7 @@ jobs: towncrier: name: Towncrier check runs-on: ubuntu-latest - if: github.head_ref == 'develop' + if: github.event_name == 'pull_request' && github.head_ref == 'develop' steps: - uses: actions/checkout@v3 - name: Set up Python 3.8 @@ -226,4 +226,3 @@ jobs: towncrier check --compare-with origin/${BASE_BRANCH} env: BASE_BRANCH: ${{ github.base_ref }} - if: github.event_name == 'pull_request'