File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments