From d189d966678bca80b9522665f01e13624ddef45f Mon Sep 17 00:00:00 2001 From: Carolin Stolpe <8385345+castolpe@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:07:46 +0100 Subject: [PATCH] Add dvc commit and git push dvc.lock to pipeline --- .github/workflows/run_data_pipeline.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_data_pipeline.yml b/.github/workflows/run_data_pipeline.yml index a07dd84..50158f5 100644 --- a/.github/workflows/run_data_pipeline.yml +++ b/.github/workflows/run_data_pipeline.yml @@ -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 'github-actions@github.com' + git add . + git commit -m "[Github Action]: Update DVC outputs" + git push \ No newline at end of file