I found 2 bugs.
First one is easy, if we do the | head -n 1 then even if there is no output it will be true. I proposed a fix which is to do the head -n 1 after.
The second one is relatively hard.
My strategy for workflows was that if the file CHANGELOG.md does not change, we do not push new commits but if it changes we force push. I forgot that the CHANGELOG.md contains the date... So if you run autoupdate on 2 different days it will consider changes while it is just the date which changed. I propose a fix which is to check if it is a workflow if there is a single line changing.
If there were errors, write an issue to the repo with the errors (this avoid to go to the log and check the last lines, especially for iwc where you need to download the whole log).
If the autoupdate fails, get the last line of the stderr (for this, I need to send the stderr to a file but I think it is fine).
I found 2 bugs. First one is easy, if we do the
| head -n 1
then even if there is no output it will betrue
. I proposed a fix which is to do thehead -n 1
after. The second one is relatively hard. My strategy for workflows was that if the fileCHANGELOG.md
does not change, we do not push new commits but if it changes we force push. I forgot that the CHANGELOG.md contains the date... So if you run autoupdate on 2 different days it will consider changes while it is just the date which changed. I propose a fix which is to check if it is a workflow if there is a single line changing.