From 9484bb071a91ed041c0867cbd591a0deb303c6e6 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Tue, 12 Nov 2024 18:31:08 -0600 Subject: [PATCH] Turn off gh workflows --- .../update_dbt_marts_schema_changelog.yml | 46 +++++++++---------- .../update_source_data_schema_changelog.yml | 22 ++++----- dags/dbt_data_quality_alerts_dag.py | 9 +++- 3 files changed, 42 insertions(+), 35 deletions(-) diff --git a/.github/workflows/update_dbt_marts_schema_changelog.yml b/.github/workflows/update_dbt_marts_schema_changelog.yml index 80166586..4a7b62b0 100644 --- a/.github/workflows/update_dbt_marts_schema_changelog.yml +++ b/.github/workflows/update_dbt_marts_schema_changelog.yml @@ -45,28 +45,28 @@ jobs: output=$(. scripts/update_dbt_marts_schema_changelog.sh) echo "$output" > changelog/dbt_marts.md - - name: Commit changes - id: commit_changes - run: | - git add changelog/dbt_marts.md - if git commit -m "Update changelog for DBT marts"; then - echo "Changes committed." - echo "changes_committed=true" >> $GITHUB_OUTPUT - else - echo "No changes to commit." - echo "changes_committed=false" >> $GITHUB_OUTPUT - fi + # - name: Commit changes + # id: commit_changes + # run: | + # git add changelog/dbt_marts.md + # if git commit -m "Update changelog for DBT marts"; then + # echo "Changes committed." + # echo "changes_committed=true" >> $GITHUB_OUTPUT + # else + # echo "No changes to commit." + # echo "changes_committed=false" >> $GITHUB_OUTPUT + # fi - - name: Push branch - if: steps.commit_changes.outputs.changes_committed == 'true' - run: | - git push origin ${{ steps.create_branch.outputs.branch }} + # - name: Push branch + # if: steps.commit_changes.outputs.changes_committed == 'true' + # run: | + # git push origin ${{ steps.create_branch.outputs.branch }} - - name: Create Pull Request - if: steps.commit_changes.outputs.changes_committed == 'true' - run: | - gh pr create -B master -H ${{ steps.create_branch.outputs.branch }} \ - --title 'Update schema changelog for DBT marts' \ - --body 'This is an autogenerated PR to update schema changelog for marts.' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # - name: Create Pull Request + # if: steps.commit_changes.outputs.changes_committed == 'true' + # run: | + # gh pr create -B master -H ${{ steps.create_branch.outputs.branch }} \ + # --title 'Update schema changelog for DBT marts' \ + # --body 'This is an autogenerated PR to update schema changelog for marts.' + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 209f6396..6750dc77 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -35,14 +35,14 @@ jobs: rm -rf $OLD_SCHEMAS_DIR rm -rf repo_master_copy - - name: Commit and Push Changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add changelog/source_data.md - if git commit -m "Update changelog for Source data"; then - echo "Changes committed." - git push - else - echo "No changes to commit." - fi + # - name: Commit and Push Changes + # run: | + # git config --local user.email "action@github.com" + # git config --local user.name "GitHub Action" + # git add changelog/source_data.md + # if git commit -m "Update changelog for Source data"; then + # echo "Changes committed." + # git push + # else + # echo "No changes to commit." + # fi diff --git a/dags/dbt_data_quality_alerts_dag.py b/dags/dbt_data_quality_alerts_dag.py index e8f58b8a..fac6fd94 100644 --- a/dags/dbt_data_quality_alerts_dag.py +++ b/dags/dbt_data_quality_alerts_dag.py @@ -30,7 +30,14 @@ # Trigger elementary elementary_alerts = elementary_task( - dag, "dbt_data_quality", "monitor", resource_cfg="dbt" + dag, + "dbt_data_quality", + "monitor", + resource_cfg="dbt", + cmd_args=[ + "--profiles-dir", + ".", + ], ) elementary_alerts