A very small GitHub Action that checks that the git status
is clean at the
end of a build.
Build process tends to drift and leave files behind that are either changed or untracked. Generally when that happens, it can be either of those two things:
- A new build artifact appeared, that should be added to
.gitignore
- Some
.lock
file or other generated file was updated and needs to be committed to the repo.
By adding this simple action to your project, you make sure that these issues are surfaced early.
Add the following step to your action YAML
- uses: numtide/clean-git-action@v2
Here is how it looks like on success:
Here is how it looks like on failure:
That's it!
MIT - 2021 Numtide