From 55892824854edaa3a972e0b675654f3e3d4769ad Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Wed, 4 Oct 2023 10:22:37 +0000 Subject: [PATCH] use target branch as diff location --- .github/workflows/MLPipelinePullRequest.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/MLPipelinePullRequest.yml b/.github/workflows/MLPipelinePullRequest.yml index 170fc66..3cf830b 100644 --- a/.github/workflows/MLPipelinePullRequest.yml +++ b/.github/workflows/MLPipelinePullRequest.yml @@ -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