From 6464899c2346825110c5e6dc0bf2e24fff5652c8 Mon Sep 17 00:00:00 2001 From: Noel Gomez Date: Thu, 17 Oct 2024 17:49:10 -0700 Subject: [PATCH] update PR if condition --- .github/workflows/pull_request_build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request_build.yml b/.github/workflows/pull_request_build.yml index 64d330fb..69b04089 100644 --- a/.github/workflows/pull_request_build.yml +++ b/.github/workflows/pull_request_build.yml @@ -18,7 +18,7 @@ concurrency: jobs: dbt: - if: contains(github.event.pull_request.head.ref, 'transform/') + if: ${{ contains(github.event.pull_request.changed_files, 'transform/') }} name: Pull Request dbt Tests runs-on: ubuntu-latest @@ -116,7 +116,7 @@ jobs: run: "dbt --no-write-json run-operation drop_recreate_db --args '{db_name: ${{env.DATACOVES__MAIN__DATABASE}}, recreate: False}'" # yamllint disable-line rule:line-length airflow: - if: contains(github.event.pull_request.head.ref, 'orchestrate/') + if: ${{ contains(github.event.pull_request.changed_files, 'orchestrate/') }} name: Pull Request Airflow Tests runs-on: ubuntu-latest