def find_latest_artifact(artifacts_dict: dict, name: str = "rst_files") -> int:
    """Finds id of latest artifact that can be downloaded

    :param artifacts_dict: Fetched github actions
    :type artifacts_dict: dict
    :param name: Name of searched artifact. Defaults to "rst_files".
    :type name: str
    :returns: Id of latest artifact containing rst files
    :rtype: int

    """
    return max([r["id"] for r in artifacts_dict["artifacts"] if r["name"] == name])