def METHOD_NAME():
    branch_name = environ["GITHUB_REF_NAME"]
    event_name = environ["GITHUB_EVENT_NAME"]
    access_token = environ.get("GHA_TOKEN")
    _setup_git_author()
    logging.basicConfig(level=logging.INFO)
    logging.info("Branch name: %s", branch_name)
    logging.info("Event name: %s", event_name)
    if event_name in {"schedule", "workflow_dispatch"}:
        logging.info("Creating PR")
        create_pr(branch_name, access_token)
    elif event_name == "issue_comment":
        logging.info("Updating PR")
        update_pr(branch_name, access_token)
    else:
        raise ValueError(f"Unknown event name: {event_name}")