mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
use target branch as diff location
This commit is contained in:
parent
129c0f8c2f
commit
5589282485
1 changed files with 3 additions and 2 deletions
5
.github/workflows/MLPipelinePullRequest.yml
vendored
5
.github/workflows/MLPipelinePullRequest.yml
vendored
|
|
@ -89,13 +89,14 @@ jobs:
|
|||
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY }}
|
||||
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TARGET_BRANCH: ${{ github.base_ref }}
|
||||
run: |
|
||||
cd modules/ml-pipeline/src/pipeline
|
||||
echo "## Model metrics" > report.md
|
||||
|
||||
# Compare metrics to master
|
||||
git fetch --depth=1 origin master:master
|
||||
dvc metrics diff --md --all master >> report.md
|
||||
git fetch --depth=1 origin ${TARGET_BRANCH}:${TARGET_BRANCH}
|
||||
dvc metrics diff --md --all ${TARGET_BRANCH} >> report.md
|
||||
|
||||
cml comment create report.md
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue