Open ttarczynski opened 3 years ago
There's a discussion about this problem: https://github.com/isaacs/github/issues/1390
It seams that we need to disable the "include administrators" option to allow the Bot to push to main
.
Plus make the Bot user an admin.
See the failing action definition: https://github.com/ContainerSolutions/terraform-examples/blob/e6b2b53060f6241c63dfa105fddd5246c35b8aa4/.github/workflows/main.yml#L186-L196
And here are some tips from the git-auto-commit
action authors:
One more idea: maybe it would be better to change the process here.
The reason of the Bot commits is that we want to record the last successful full CI test run in .test_log.log and then test only the files that have changed.
But instead of that we can use git tags. The process would be simpler and without Bot pushing to main
:
last_successful_tests_on_main
last_successful_tests_on_integration
main
/ integration
should be compared to the last successful on that branch@ianmiell @sanyer what's your opinion? Should we implement this with git tags?
See the last CI run: https://github.com/ContainerSolutions/terraform-examples/runs/3074918753?check_suite_focus=true It's because the
main
branch is protected now: