Skip to content

Commit

Permalink
Fix git safe.directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
tasdomas committed Oct 10, 2022
1 parent cdcd1c2 commit b973927
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOF > /home/runner/work/_temp/_github_home/.gitconfig
[safe]
directory = /github/workspace
EOF
- name: Generate metrics report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -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
Expand Down

0 comments on commit b973927

Please sign in to comment.