File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 2121
2222import tomlkit
2323
24- from .set_branch_protection_rules import get_package_name
25- from .set_branch_protection_rules import set_branch_protection
2624from .shared .call import call
2725from .shared .call import wait_for_accept
2826from .shared .git import get_branch_name
@@ -157,17 +155,19 @@ def main():
157155 '--no-push' ,
158156 ]
159157 if args .auto_update :
160- # Admin commands are interactive, we do them unconditionally
161- # later here :
158+ # Admin commands require more permissions than a workflow might
159+ # be able to get :
162160 config_package_args .extend (
163161 ['--no-admin' , '--started-from-auto-update' ])
164162 if not args .commit :
165163 config_package_args .append ('--no-commit' )
166164
167165 call (* config_package_args , cwd = cwd_str )
168- if args .auto_update :
169- set_branch_protection (
170- get_package_name (), path / '.meta.toml' )
166+ # GitHub does not allow this inside the workflow, at least I did
167+ # not find a way to do it:
168+ # if args.auto_update:
169+ # set_branch_protection(
170+ # get_package_name(), path / '.meta.toml')
171171
172172 src = path .resolve () / 'src'
173173 py_ver_plus = f'--py{ oldest_python_version .replace ("." , "" )} -plus'
You can’t perform that action at this time.
0 commit comments