-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dvc commit and git push dvc.lock to pipeline
- Loading branch information
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 |