Closed Seasawher closed 4 months ago
When the action ran the mathlib post-update hook updated lean-toolchain
. However the only change to the file was a white space change as can be seen in the images of the hex views of the two versions of the file. The difference between \n and \r\n.
However the action saw that the file had changed and then proceeded believing this was an update and consequently the pointless PR was created.
Obviously this isn't ideal! In terms of solutions to this issue, there are some options:
Thank you. I tried changing EOL to LF and it works as expected.
Update the part of the action which detects which files have changed in order to ignore any white space. Probably worth doing and not much effort.
It sounds good to me.
In PR #4 the code is updated so that it ignores white space when comparing files.
Generally I'm noticing that there isn't a clear best way to update a lean project using mathlib. The code executed here is the best that I can see for the moment. I was going to avoid further polishing the action until the desired behaviour becomes clear.
Thank you for creating nice action!
I tried this for my repository https://github.com/Seasawher/mathlib4-tactics
but generated PR changes nothing. see https://github.com/Seasawher/mathlib4-tactics/pull/4
Can the creation of a PR be skipped if there are no changes?