Skip to content

Commit

Permalink
update PR if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Noel Gomez committed Oct 18, 2024
1 parent 05aaf25 commit 6464899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6464899

Please sign in to comment.