actions-gh-pages icon indicating copy to clipboard operation
actions-gh-pages copied to clipboard

Suppress output of cleanup

Open michel-kraemer opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe

We have a large repository with several thousands of files that we regularly update. We clean up the whole repository because the filenames include hashes that change on each update. git rm logs every file deleted which makes the log file very large and possibly takes time.

Describe the solution you'd like

It would be great if there was an option to disable the output of git rm. As far as I can see, you just need to add --quiet here: https://github.com/peaceiris/actions-gh-pages/blob/main/src/git-utils.ts#L115

This would reduce the size of the log file and also save some time I guess.

Describe alternatives you've considered

We considered the keepFiles option, but as I said, the filenames have hashes so this won't work.

Additional context

--

michel-kraemer avatar Oct 25 '20 11:10 michel-kraemer

Thank you for suggesting this.

Yes. I sometimes think the log of git rm is long, me too. I plan to show the log when the debugging flag is enabled only.

BTW, I doubt hiding the log makes fast the deployment process. I don't know the truth until I measure it actually. Simply, the deleting operation is the bottleneck, I think. Did you try to use force_orphan: true? That option does not have any cleaning up operation. If the option is acceptable in your workflow, It may be faster than the current setting.

peaceiris avatar Oct 27 '20 13:10 peaceiris