def METHOD_NAME(deploy_info_file: str):
    post_url = get_post_url()
    if not post_url:
        print('Skipping post comment as could not resolve a PR post url!!')
        return
    token = os.getenv('GITHUB_TOKEN')
    if not token:
        raise ValueError("Can't post comment. GITHUB_TOKEN env variable is not set")
    deploy_url = ""
    with open(deploy_info_file, 'r') as f:
        if matched_url := re.search("https://xsoar-pan-dev--pull-request-.*web.app", f.read()):
            deploy_url = matched_url.group(0)
    # preview message
    message = f"# Preview Site Available\n\n" \
        "Congratulations! The automatic build has completed successfully.\n" \
        f"A preview site is available at: {deploy_url}\n\n---\n" \
        "**Important:** Make sure to inspect your changes at the preview site."
    if os.getenv('CIRCLE_BRANCH') == 'master':
        message = "# Production Site Updated\n\n" \
            "Congratulations! The automatic build has completed successfully.\n" \
            "The production site of our docs has been updated. You can view it at: https://xsoar.pan.dev"
    else:
        # add detcted changes
        try:
            links = get_modified_links(deploy_url)
            if links:
                message += '\n\nDetected modified urls:\n'
                for link in links:
                    message += f'*  [{link[0]}]({link[1]})\n'
        except Exception as ex:
            print(f'Failed getting modified file links: {str(ex)}')
            traceback.print_exc()
    print(f'Going to post comment:\n------------\n{message}\n------------\nto url: {post_url}')
    verify = os.getenv('SKIP_SSL_VERIFY') is None
    headers = {'Authorization': 'Bearer ' + token}
    res = requests.post(post_url, json={"body": message}, headers=headers, verify=verify)
    res.raise_for_status()