workflow: skip main/master branch guard in --ci mode
All checks were successful
Gitea CI / test (push) Successful in 37s
Gitea CI / test (pull_request) Successful in 34s

This commit is contained in:
agentson
2026-03-01 20:35:22 +09:00
parent 05be112085
commit 940a7e094b

View File

@@ -134,7 +134,7 @@ def main() -> int:
branch = _current_branch()
if not branch:
errors.append("cannot resolve current git branch")
elif branch in {"main", "master"}:
elif not args.ci and branch in {"main", "master"}:
errors.append(f"working branch must not be {branch}")
_check_handover_entry(