dbbs-lab / bsb-core

The Brain Scaffold Builder
https://bsb.readthedocs.io
GNU General Public License v3.0
22 stars 16 forks source link

Fix release on main branch #870

Closed drodarie closed 3 months ago

drodarie commented 3 months ago

Because of the protection on the main branch the automatic release pipeline does not work. In short, the github bot is not allowed to push on main. https://github.com/orgs/community/discussions/13836

There are no clean solution but there are two workarounds:

I am not sure which one is the best option..

Helveg commented 3 months ago

The GitHub App seems like the more appropriate solution :) You can name it the Automatic Release Bot and add it to the bypass list.

drodarie commented 3 months ago

Ok I have a working solution (it was a tricky one), here are the changes I suggest that:

I struggled a lot but I finally have a working version on my test repo

Helveg commented 3 months ago

organization level or repo level

org level seems better?

we change the branch protection rules on bsb-core: use rulesets instead of the default branches protection system (technically does the same but allow certain users and app to bypass rules).

yea, they're a new feature from this year, switching is good :)

Seems like a good solution, let's do it.