From b973927d48c892523ba0f181d2d2b6e03a9edd86 Mon Sep 17 00:00:00 2001 From: Domas Monkus Date: Mon, 10 Oct 2022 17:42:21 +0300 Subject: [PATCH] Fix git safe.directory. --- .github/workflows/cml.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 4de93ba..1f5601e 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -9,6 +9,13 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 + - name: Fix git safe.directory in container + run: | + mkdir -p /home/runner/work/_temp/_github_home + cat < /home/runner/work/_temp/_github_home/.gitconfig + [safe] + directory = /github/workspace + EOF - name: Generate metrics report env: REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -17,7 +24,7 @@ jobs: dvc get https://github.com/iterative/dataset-registry/ dvc-course/hymenoptera_data - dvc exp run + dvc exp run dvc metrics show --show-md >> report.md