-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CML workflow improvements #4
base: main
Are you sure you want to change the base?
Conversation
git add --all | ||
if [-z "$(git status --porcelain)"]; then | ||
echo "::set-output name=push::false" | ||
else | ||
git commit -m "Results of the last experiment" -a | ||
echo "::set-output name=push::true" | ||
if [[ -n "$(git status --porcelain)" ]]; then | ||
git commit -m "Results of the last experiment" | ||
git push origin HEAD:${{ github.ref }} | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatively could (should?) use cml pr .
here /CC @iterative/cml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With iterative/cml#907, cml pr --auto-merge .
would be an awesome alternative to all this git
trickery.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: now cml pr --squash .
as per iterative/cml#823 and children
id: commit | ||
vl2png vega.json -s 1.5 | cml publish --md >> report.md | ||
echo "## Metrics" >> report.md | ||
dvc metrics show --md >> report.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume dvc metrics show --md >> report.md
works? Rather than the previous cat output/metrics.json >> report.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably? Assumptions are dangerous in CI/CD workflows; empyrical testing will dissipate our doubts.
PS workflow failing for same reason as current |
Is this a generated repo? @iesahin @tapadipti