Conversation
ba36829 to
89028f7
Compare
Our CI workflows currently attempt to generate docs and commit the result directly to the PR branch. This workflow prevents subsequent CI checks from running because GHA cannot trigger itself in PRs. This change updates our workflows to force developers to generate docs locally and commit the result, avoiding the annoying necessity to create an `--alow-empty "trigger ci"` commit. CI will now fail if uncommitted docs changes are detected. These changes are usually either an updated `Chart.lock` or `README.md`. They can be updated with `just update-lock` and `just docs` resepectively.
f0bff5d to
987bca3
Compare
If the option is generate something locally and commit, versus trigger CI with an empty commit I think I would prefer the later during the release process. It is quite nice to not rely on anything being setup locally. |
I agree with @dotNomad. I'm curious if there's a way to configure the docs commit in a way that actually allows CI to run |
IMO this makes the product releases easier to automate because it won't require developers to go push an empty commit to unblock CI during the release. There would be no need to run anything locally because we can automate For outside contributors we currently don't allow CI to run at all (#62) which is preventing community engagement. It has also proven challenging in the past for contributors to know how to make simple changes because CI gets stuck and it's not obvious how to unstick it. |
| if git status --porcelain=1 2>&1 | grep -E "^.|\bwarning\b" | grep -vE "\.gitignore"; then | ||
| echo "Error: uncommitted changes detected." | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
It would be helpful to log what the uncommitted changes were
Oh I see. I didn't realize that was the intended workflow. That makes sense to me |
bschwedler
left a comment
There was a problem hiding this comment.
I like this approach. This moves the responsibility of updating the docs to the PR creation process.
Our CI workflows currently attempt to generate docs and commit the result directly to the PR branch. This workflow prevents subsequent CI checks from running because GHA cannot trigger itself in PRs.
This change updates our workflows to force developers to generate docs locally and commit the result, avoiding the annoying necessity to create an
--alow-empty "trigger ci"commit.CI will now fail if uncommitted docs changes are detected. These changes are usually either an updated
Chart.lockorREADME.md. They can be updated withjust update-lockandjust docsrespectively.Example docs failure: