Skip to content

Commit 037cc7e

Browse files
committed
Update Data Drift Monitoring and Model Retraining Workflow
1 parent 71b0915 commit 037cc7e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/Data_Drift_Monitoring.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Check for Unstaged Changes
3838
run: |
3939
if [[ -n "$(git status --porcelain)" ]]; then
40-
echo "Unstaged changes. Committing ..."
40+
echo "There are unstaged changes. Committing ..."
4141
git add --all
4242
git commit -m "Automated commit to avoid unstaged changes before pull"
4343
else
@@ -46,14 +46,14 @@ jobs:
4646
4747
- name: Pull and Rebase
4848
run: |
49-
git pull origin main --rebase
49+
git pull origin main --rebase || echo "No changes to rebase"
5050
5151
- name: Commit Changes
5252
run: |
53-
git add --all
54-
git commit -m "Monthly Data Drift Monitoring and Model Retraining"
53+
git diff --exit-code || (git add --all && git commit -m "Monthly Data Drift Monitoring and Model Retraining")
5554
5655
- name: Push Changes
5756
uses: ad-m/github-push-action@master
5857
with:
5958
github_token: ${{ secrets.PAT }}
59+

0 commit comments

Comments
 (0)