INNER CODE UNIT · Python

FileUpdate

DmitryRyumin/ICCV-2023-25-Papers · code/markdown_to_json_parser.py:14

class FileUpdate:
    def __init__(self, path, content):
        self.path = path
        self.content = content


repo_full_name = os.getenv("GITHUB_REPOSITORY")
if repo_full_name:
    owner, repo_name = repo_full_name.split("/")
else:
    owner, repo_name = None, None


class Config:
    GITHUB_TOKEN = os.getenv("INPUT_PAPER_TOKEN") or os.getenv("PAPER_TOKEN")
    GITHUB_WORKSPACE = os.getenv("GITHUB_WORKSPACE", "/github/workspace")
    MARKDOWN_DIRECTORY = "sections"
    OUTPUT_DIRECTORY = "json_data"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…