Skip to content

Commit

Permalink
Add dvc commit and git push dvc.lock to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
castolpe committed Nov 6, 2024
1 parent 99dd416 commit d189d96
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/run_data_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ jobs:
dvc repro model_train
dvc repro model_evaluation
- name: Push updated model to DVC
- name: Commit DVC outputs
run: dvc commit

- name: Push DVC outputs
env:
DVC_REMOTE_URL: ${{ secrets.DVC_REMOTE_URL }}
DAGSHUB_TOKEN: ${{ secrets.DAGSHUB_TOKEN }}
Expand All @@ -41,3 +44,11 @@ jobs:
dvc remote modify origin --local access_key_id $DVC_ACCESS_KEY
dvc remote modify origin --local secret_access_key $DVC_ACCESS_KEY
dvc push
- name: Git Commit DVC changes
run: |
git config --global user.name 'github-actions'
git config --global user.email '[email protected]'
git add .
git commit -m "[Github Action]: Update DVC outputs"
git push

0 comments on commit d189d96

Please sign in to comment.