Autoformatting with github actions#64
Conversation
|
Note that after code is formatted by spotless, it will for a moment hide the checks because it cannot run against itself per https://github.com/marketplace/actions/add-commit#the-commit-from-the-action-is-not-triggering-ci |
|
For most of the times I quickly made multiple commits in under a minute I let copilot generate the commit message so a lot of the "in-a-row" commits are... questionable. that said, I assert that given my above comment about checks appearing to partially vanish under certain conditions and how they don't in actuality, this works. |
Updated step names for consistency and clarity in the workflow.
Removed pull_request trigger from workflow.
This should in theory be faster and work.
Comment out spotless check and success condition for commit.
Failsafe, so it checks regardless
This MIGHT make it work.
This file is created to prevent empty commits.
In theory, the commit code should only run if spotless was applied, which should only occur if check fails.
Just so I don't change anything that doesn't need it
23254b9 to
957b390
Compare
This will allow manual build validation and code format checks, to use as desired.
When code is pushed or a pull request is made, said code will now be checked for if formatted properly. If code is NOT formatted properly, it will trigger another action which DOES format it properly and commits the fix to do so.