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