Skip to content

Commit

Permalink
Turn off gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
amishas157 committed Nov 13, 2024
1 parent 48c8e63 commit 9484bb0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 35 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/update_dbt_marts_schema_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
22 changes: 11 additions & 11 deletions .github/workflows/update_source_data_schema_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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 "[email protected]"
# 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
9 changes: 8 additions & 1 deletion dags/dbt_data_quality_alerts_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9484bb0

Please sign in to comment.