CML <-> DVC push
Try to push dvc ephemeral commits
Won't work out of the box for GitHub, see https://github.com/iterative/cml/issues/560#issuecomment-852250748 and dulwich/dulwich#882
Does not have to be in DVC, its just only find out a mechanism in CML
Here you're a quick patch from my test repository, so you can use dvc to push experiments:
# Dulwich headless authentication patch for GitHub Actions
# See https://github.com/iterative/cml/issues/560#issuecomment-852250748
credentials="$(
git config --local http.https://github.com/.extraheader |
awk '{print $3}' |
base64 --decode
)"
address="$(
git config --local remote.origin.url |
sed 's/^https:\/\///'
)"
git config --local remote.origin.url "https://$credentials@$address"
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
It would be easier to have it fixed in DVC/dulwich, though.
also related to https://github.com/iterative/dvc/issues/6823#issuecomment-1072991559?
out of our control for the time being, https://github.com/jelmer/dulwich/issues/882