From f2c2e7f687b5dc4cce86c52d7a2f5f3dbadbe289 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Tue, 4 Jul 2023 12:20:01 +0200 Subject: [PATCH] Fixed duplicate workflow executions on PRs - if we push to a branch, and open a PR, we'll get duplicate executions - this fixes that by adding the same check we have elsewhere in the workflow --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4c398ce02..456550bd21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: job_get_metadata: name: Metadata runs-on: ubuntu-latest + if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) permissions: pull-requests: read steps: @@ -99,6 +100,7 @@ jobs: job_install_deps: name: Install Dependencies needs: job_get_metadata + if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) runs-on: ubuntu-latest timeout-minutes: 15 steps: @@ -770,7 +772,7 @@ jobs: job_comments_ui, job_signup_form, ] - if: always() + if: always() && (github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))) runs-on: ubuntu-latest steps: - name: Check for failures