What is the best option to keep commits low? #885
-
The goal is simple: Reduce amount of Commits the GitHub Action does for updating the README file. The action as of right now creates 3 separate commits towards the main branch.
Perhaps the action does a small change in the other commits that GitHub simply isn't aware of/doesn't notice? Either way, I would like to reduce the count, since we use webhooks for Discord activities, including commits, and this can and will flood the channel every so often. I saw that there is a Pull request type option, but this wouldn't help too much with the issue at hand. Are there any other options that we could try? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Maybe you can find some leads in #471 But tldr;, here's a few solutions you could try:
But I think only the first solution may work currently for your use case, I'm not sure that In addition, with the first solution it may be easier to avoid the hooks since you just need to ignore the dest branch instead, and it avoids polluting the default branch |
Beta Was this translation helpful? Give feedback.
Maybe you can find some leads in #471
But tldr;, here's a few solutions you could try:
committer_branch
and use an orphan branch instead unrelated to default branchoutput_action: none
and manually handle what to do with resultBut I think only the first solution may work currently for your use case, I'm not sure that
.cache
files inherits the required params to use the two later optionIn addition, with the first solution it may be easier to avoid the hooks since you just need to ignore the dest branch instead, and it avoids polluting the default branch